What you need is something like this...
ListType *listP=GetObjectPointer(ListID);
LstSetSelection(listP,selection);
CtlSetLabel (GetObjectPointer(TriggerID), LstGetSelectionText(listP, LstGetSelection(listP)));
Bob.
Mario Hewardt wrote:
I've been trying to set the default value for a list that is associated with a popup trigger. Essentially what I have on the screen looks like following:
Number of stories: <down arrow>
When I make a manual selection in the list by pushing the <down arrow> the selection shows up right next to it. I.e.:
Number of stories: <down arrow> 3
When the app starts I would like it to display a default value next to the <down arrow>. I tried setting the list selection but that does not work:
LstSetSelection ( ..., 3 ) ;
Any help greatly appreciated.
Thanks!
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
