At 06:34 PM 9/4/2002 +0930, you wrote: >How do you close a dialog from it's event loop.... for example I want to >show a dialog using FrmDoDialog() but close it if the user hasn't tapped >anything after 5 secs. I'm guessing I give the dialog an event handler and >watch in nilEvents to see if the time limit has passed, but what code do I >use to close the dialog - do I call a function or create an event?
FrmDeleteForm(FrmGetActiveForm()) while in a modal FrmDoDialog handler won't actually delete the dialog, but it will set an internal flag that gets caught by FrmDoDialog, causing it to close the form and exit (and indicate that the default button was pressed, IIRC). I don't think this is officially documented behavior, however. -- Ben Combee <[EMAIL PROTECTED]> CodeWarrior for Palm OS technical lead Palm OS programming help @ www.palmoswerks.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
