Here is my code for popSelect event. Could you please
help me to identify where the problem is:
.
.
.
ListPtr lstP = FrmGetObjectPtr(frmP,
 FrmGetObjectIndex(frmP, MainLstList));
ControlPtr ctlP = FrmGetObjectPtr(frmP,
 FrmGetObjectIndex(frmP, MainPopTrigger));
Char * lblP;
.
.
.
case popSelectEvent:
 lblP = (Char*)CtlGetLabel(ctlP);
 StrCopy(lblP, LstGetSelectionText(lstP,
LstGetSelection(lstP)));
 CtlSetLabel(ctlP, lblP);
 handled = false;
 break;



--- christy <[EMAIL PROTECTED]> wrote:
could anyone give me an example routine for
popSelectEvent? I kept on getting "Low memory". The
list is created from a database by a callback function
(LstSetDrawFunction) in the MainFormInit routine. 
 
I also like to pre-set the label for the popup trigger
to be the 1st choice in the list when the form opens.
Is this possible?

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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

Reply via email to