On Fri, 23 Jan 2004, Jim White wrote:

> My question involves pull-down (popup-trigger) lists.  How can I (when
> entering a screen) display one of the list selections as a
> variable-default value (i.e., have it check a global variable and
> display the item corresponding to the variable) when the screen is first
> painted?
>
> I have tried tying this action in to an OnOpen event and using the
> PSList.SetSelectionIndex but it does nothing useful...

Setting the list selection only affects the list, not the popup trigger.
You need to set the label of the popup trigger for it to change.

An alternate method is to send a popSelectEvent (I think that's the right
one) to the popup trigger, and let Palm OS handle updating everything.
That method is risky, though, if you're actually going to do something in
your code when the selection is changed.

-- 
-----------------------------------------------------------------------
Brian Smith //  avalon73 at caerleon dot us  // http://www.caerleon.us/
Software Developer  //  Gamer  //   Webmaster  //  System Administrator
A Black Hole:  What happens when God divides by zero.

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

Reply via email to