At 08:17 AM 5/22/2004, you wrote:
Hi all
I have the follow code

case ctlSelectEvent:
switch(event->data.ctlSelect.controlID)
{
case OkButton:
FrmPopupForm(Form_Browser);
/*
this section code, wait for the FrmReturnToForm from Form_Browser?
*/
handled=true;
break;
}

When you call FrmPopupForm, the new form won't appear on the screen until you return to the event loop. The only indication that the new form has appearred will be a winExitEvent, and the indication that it has gone away will be a winEnterEvent (and possibly a frmUpdateEvent, if the OS thinks you need to redraw yourself). Of course, you can have the code in the popup form do other things to try to inform you it has gone away.


If you want to popup a form that will run it's own event loop, do things, and then have the code after the popup continue when it's done, use FrmDoDialog.

-- Ben Combee, DTS technical lead, PalmSource, Inc.
   Read "Combee on Palm OS" at http://palmos.combee.net/



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

Reply via email to