Create your own 'alert' box with an event handler.  Have it trap events you
don't want passed to the OS.  That way pressing the buttons won't
immediately exit your app while displaying an alert.
or Save your data before popping up an alert.

----- Original Message -----
From: "Benjamin Brazil" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Wednesday, March 06, 2002 9:25 AM
Subject: Alert box defaults


> Hello,
> I am using an alert box to confirm that the user wishes to delete a record
> from a databse. The alert box works fine and so does the buttons. However
if
> the user exits the program via the hardkeys or the home button the record
> gets deleted anyway. I need to define a default so that the record is not
> deleted if the program is exited with the alert box open. Could someone
tell
> me how this is done. I am using C and CodeWarrior 7. I am not using the
> constructor, but the PilRC tools.
>
> Thank you for your advice,
> Benjamin Brazil
>
>
> _________________________________________________________________
> Send and receive Hotmail on your mobile device: http://mobile.msn.com
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/
>


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

Reply via email to