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: Tim Jones <tjmac at tolisgroup dot com>
Date: Thu, 31 May 2007 08:08:39 -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>
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.

Tim
--
Tim Jones
tjmac at tolisgroup dot com



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