--- "Edward P. Ross" <[EMAIL PROTECTED]> wrote:
> 
> I have a list that is populated with a callback function.  The
> entries in the list are taken from a database.  I want to add 
> a list item at position 0 that says "All".  I am having trouble 
> figuring out where I would code for this.  If anyone can offer 
> to point me in the right direction I would greatly appreciate it.
> 

If you are using a callback to draw the items, then draw "All" for item
0, draw the first database record item for item 1, etc.  The draw
callback function header looks like this:

  static void YourDrawCallback(Int16 itemNum, 
    RectangleType *bounds, Char **itemsText);

- "itemNum" is the item number
- "bounds" give the coordinates where you can draw
- you can ignore "itemsText" because you will get the stuff to draw
from the database.

David Fedor's List Recipe at
http://www.palmos.com/dev/support/docs/recipes/lists.html contains
examples of how to use Lists.


__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to