realbasic-nug
[Top] [All Lists]

ListBox1.ColumnType(-1) = ListBox.TypeEditable

To: REALbasic Network Users Group <realbasic-nug at lists dot realsoftware dot com>
Subject: ListBox1.ColumnType(-1) = ListBox.TypeEditable
From: Emile Schwarz <emile dot a dot schwarz at wanadoo dot fr>
Date: Thu, 31 May 2007 14:44:33 +0200
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
Hi all,

REALbasic "current"
Mac OS X "current", but concern all platforms!

I wanted to set all the columns of a ListBox as editable using the 
following code, but it does not works; the error is OutOfBoundsException.

Is it worth a Feature Request ?

Used code:
ListBox1.ColumnType(-1) = ListBox.TypeEditable


Of course, There was not the "Use -1 to refer to all columns" in the 
Notes section for this Property as in the Column Property (for example) 
in the Language Reference (however, I typed the -1 value from memory, 
hoping it works there...)

And, CellType override the ColumnType property, so it is not a problem 
to set Editable (in this case) for all columns (on other cases, we can 
just set the ColumnType for the needed Column!).

The Feature Request coul be to add -1 special trick to every place - in 
the ListBox Control - it can be usefull;after all, it can be usefull in 
many of the ListBox properties ;)

Your feeling ?

Emile

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>
  • ListBox1.ColumnType(-1) = ListBox.TypeEditable, Emile Schwarz <=