Oh I see the problem is in popupform your code is being executed
immediately after popupform is called. Your code should have been called
after frmreturntoform call in myform code.

Another way is use frmdodialog with a modal form / use frmgotoform in
both the form handlers code

regards

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Klemen Dovrtel
Sent: Thursday, August 04, 2005 4:19 PM
To: Palm Developer Forum
Subject: RE: Selector Trigger

I tried this. Still the same. :(

char gSelector[30];

FrmPopupForm(MyForm);
switch(gGlobalVariable)
{
case 1:
StrPrintF(gSelector,"xxxx");
break;
case 2:
StrPrintF(gSelector,"yyyy");
break;
}
CtlSetLabel(ctl,gSelector);   (typing mistake in last post)
CtlDrawControl(ctl);
frmP=FrmGetActiveForm();
FrmDrawForm ( frmP);

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




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

Reply via email to