FrmDoDialog and FrmAlert will both return, regardless of whether the user 
presses on a dialog button or presses a hardware button to launch another
application.  As far as your application is concerned, in the latter case,
FrmDoDialog or FrmAlert will return a button-press value of the default
button ID, as specified in the form resource.

Then, when your application returns to the main event loop, it'll find an
appStopEvent sitting in the event queue.

The Palm OS will *never* quit your application (unless you consider a reset
a quit).  It always requests a quit with an appStopEvent, and waits for your
application to return from its PilotMain.


> Hi all, I'm puzzled by something which I can't find discussed in
> the documentation.  Consider the following:
>
> - my application starts modal dialog (frmAlert or frmDoDialog..)
> - user presses hardware button to launch another app
>
> What is *supposed* to happen ?  It seems that my app never
> gets a chance to clean up.  Is this supposed to be prevented,
> so that the user cannot select another app until responding
> to the modal dialog ?
>


--
Neil Rhodes
Calliope Enterprises, Inc.
1328 Clock Avenue
Redlands, CA  92374
(909) 793-5995     [EMAIL PROTECTED]      fax: (909) 793-2545

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to