From: <[EMAIL PROTECTED]>
Subject: Re: Popup Trigger Text
> After Howard's suggestion I also added a CtlSetLabel function to update
> this text, but it did not update.  Does anybody have any other
suggestions.

I've been using CtlSetLabel to set the text of a popup trigger with no
problems and LstSetSelection to set the selected item in the associated
list.  For example:

SysCopyStringResource( gPopupLabel, StudentStrString );
CtlSetLabel( FrmGetObjectPtr( frmP, FrmGetObjectIndex(frmP,
MainPlayersPopTrigger) ), gPopupLabel );
LstSetSelection( FrmGetObjectPtr( frmP, FrmGetObjectIndex(frmP,
MainPlayersList) ), gComputer );

Note that gPopupLabel is a global var.  It won't work to set the label with
a var that could go out of scope while the popup trigger exists.

Hope that helps.



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

Reply via email to