I used a loop and placed the code in a Module (in a Method with the
ListBox as parameter).
The loopmax value is the number of columns in the ListBox (-1 because
ColumnCount is 0-based) and the Loop Idex is declared as Int8.
BTW: the code you shared is basically what I used.
But the result is... random. Sometimes it works, sometimes it does not
works (works: the Cell is Editable). No pattern, same run in the IDE.
I have downloaded a brand new 2007r2 (from a PC), copied the .dmg on an
external FireWire hard disk and copied the application (300MB) folder in
that very same hard disk. The project run in the IDE have the same
'random' I saw with my regular 2007r2.
The last idea that I have is to check the project using the PC (2007r2
here too).
Nice to have an Ethernet cable between the two (30 cm distant) laptops :)
Cheers,
Emile
> Date: Thu, 31 May 2007 08:08:39 -0700
> From: Tim Jones <tjmac at tolisgroup dot com>
> Subject: Re: Another ListBox "gotcha": TypeEditable and the ListBox Open Event
> To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
>
> On May 31, 2007, at 6:17 AM, Emile Schwarz wrote:
>
>
>> > Hi all,
>> > What must I do ?
>> >
>> > a. The Window's Open event seems to be the place to set the ColumnType
>> > (but not the CellType if the ListBox is empty).
>>
>
> Actually, the Listbox's Open event is where to do this. However, I
> suspect that the CellType and ColumnType calls are defined to work on
> one entity per call, so it looks like you'll need something like:
>
> Sub Open
> Dim x As Integer
> For x = 0 to Me.ColumnCount - 1
> Me.ColumnType(x) = ListBox.TypeEditable
> Next
> End Sub
>
>
>> > b. Issue a Bug Report ?
>>
>
> No - it sounds like a Feature request.
>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
|