On Tue, 11 Jun 2002, Edward P. Ross 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.
You'd do that in your draw function, and in whatever got the selected item and did anything with it. In both cases, you'd treat item number 0 as a special case (drawing the text "All" or interpreting it as that), and sutract 1 from anything else and use the result as an index into the database (or however you're translating item number to database record). ----------------------------------------------------------------------- Brian Smith // avalon73 at arthurian dot nu // http://www.arthurian.nu/ Software Developer // Gamer // Webmaster // System Administrator Truly great madness cannot be achieved without significant intelligence. -- Henrik Tikkanen -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
