realbasic-nug
[Top] [All Lists]

Re: Another ListBox "gotcha": TypeEditable and the ListBox Open Event

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Another ListBox "gotcha": TypeEditable and the ListBox Open Event
From: Terry Ford <tmford at shaw dot ca>
Date: Thu, 31 May 2007 08:23:05 -0700
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <465ECAE6 dot 50801 at wanadoo dot fr> <D58A8013-D785-4840-BEA5-1AC5E8378581 at tolisgroup dot com>
On May 31, 2007, at 8:08 AM, Tim Jones wrote:

> 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.

I'd like to know how he does this:

> So, for debug purposes, I set the CellTag(0,0) to TypeEditable and
> CellTag(0,1) to TypeCheckBox (*) in the ListBox MouseDown Event.

Terry

_______________________________________________
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>