If you really don't want the user to exit your app, you should probably use
*both* of the methods just suggested -- i.e., set the button creator IDs as
Roger Stringer describes, *and* catch keypresses as Dave Carrigan suggests.

The reason to catch keypresses in your event loop is that (unless I'm much
mistaken) you can't set the creator ID of the 'find' soft button. This
creates a back door in your app, since the 'find' result list allows users
to open any application that returns a match (imagine if the user searches
on 'e').

The button creator IDs must be set unless you're sure you'll have control
over all the event loops in you app. Consider: FrmAlert, FrmCustomAlert, and
the radio connection dialog in the SPT1x40 all have their own event loops.
If you do not set the creator IDs, and the user presses a button while an
alert is on the screen, they will again exit your app. If the button creator
ID is set to the current application, the keypress will instead be ignored.


Good luck,

Jeremy Neal Kelly
Software Engineer
Peapod


"R�gis Daniel de Oliveira" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> Hello all,
>
> I'm starting to develop an aplication that should not exit when we press
any
> of the palm's buttons, like Calc, Phone Book, ToDo, aplications, ....
>
> How can i do this? I'm using Falch.net Developer Studio
>
> Thanks All!
>
> R�gis Daniel



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

Reply via email to