>Is it the best possible design to iterate through a database and load a
>list, or is there a way I am missing to link a database resource to a list?
I use this approach a lot for non-popup lists:
Set up a List callback routine by calling LstSetDrawFunction. It
gets called once for each visible list in the line passing a list
item #. In the callback, do something like DmQueryRecord ( dbRef,
list item# ), and draw what you want to draw. One of the other
parameters passed in to the drawing callback is the coordinates of
the current row's rectangle. You can use WinDrawChars and those
coordinates to draw the stuff in the right place.
If you're interested in pop-up lists, I'm sure someone else can give
you a good concise answer.
Regards,
Steve Mann
--
-------------------------------------------
Creative Digital Publishing Inc.
1315 Palm Street, San Luis Obispo, CA 93401-3117
-------------------------------------------
805.784.9461 805.784.9462 (fax)
[EMAIL PROTECTED] http://www.cdpubs.com
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/