This works 99% fine. When I tap on the popup the correct item is selected and highlighted but the display shows the first item in the list. That is, given my selections:
"DMY" "YMD" "MDY" "YDM" "DYM" "MYD"
my saved selection might be "YDM" (selected item 3) but the form displays the first (item 0) "DMY". Naturally I get the selected item from my saved preferences and if it is set to "YDM" I'd like the form to display "YDM". How do I do this?
The popup trigger text is only set on a popSelectEvent. You need to manually set it (using CtlSetLabel) to the text for your selection when initializing the form. One way to do this is to write:
CtlSetLabel(triggerP, LstGetSelectionText(listP, LstGetSelection(listP));
(of course, insert appropriate code to ensure there is a selection, that the list uses items, rather than a drawing callback, and so forth).
-- Ben Combee, DTS technical lead, PalmSource, Inc. Read "Combee on Palm OS" at http://palmos.combee.net/
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
