Maybe this could help.

I have a list that I draw myself, instead of loading the list with a char
array of labels, pass the number of items in the list and NULL as the
itemsText.  If you need to add additional reference data to a list (I
associate a list of record IDs with mine) - create your own dynamic array
and populate with the data you need.  The list draw callback function will
have the index if the list item to be drawn.  Use the same index variable to
retrieve your custom data. The big difference between this method and using
a table is you will have to manage the data array yourself.

You can just use a table, but you will have to handle scrolling and other
basic list-like features yourself.

Dave


-----Original Message-----
From: Sudipta Ghose <[EMAIL PROTECTED]>
To: Palm Developers Forum List <[EMAIL PROTECTED]>
Cc: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Thursday, May 27, 1999 2:18 PM
Subject: Re: UI design question -- list selection


>>Date: 26 May 1999 17:37:02 -0700
>>From: Bob Ebert <[EMAIL PROTECTED]>
>>Subject: Re: UI design question -- list selection
>
>>At 11:51 AM -0700 5/26/99, Creative Digital Publishing Inc. wrote:
>>>>2. Table object with 11 rows of text
>>>>This sounds attractive because I can put some other additional
>>>>info on each line apart from the text to be selected.
>>>
>>>With a custom drawing routine, you can do the same with a list.
>
>>Right.  The only reason to use a table instead of a list is because you
>>need to put controls in the rows.
>
>I don't get it! Using a custom draw procedure, how do I associate
additional
>data with a list item? In tables I can use TblSetRowID. Other than using an
>external array/data structure, I can't think of anything. Is there any
other
>way?
>
>>For example, the address book "list" view is really a list, because it's
>>essentially read only.  And the to do and datebook app "list" views are
>>tables, because you need to have check boxes, popups, and editable fields
>>on each line.
>
>The sources in my SDK says it as a table!
>
>>.............
>>.............
>
>>--Bob
>
>-Sugho-
>
>
>
>
>


Reply via email to