Marcelo Alves a �crit :

> Luc Le Blanc wrote:
> > I had the same need, but could not find a proper way to spawn the calculator and 
> > return to my application afterwards. So
> > instead, when the user hits the calculator button, I link my application to the 
> > calculator button before letting the OS handle
> > the keyDown event, so that when the user is done with the calculator, hitting the 
> > calculator button again relaunches my
> > applications, where I restore my previous context (stored in my application 
> > preferences), and reset the calculator button to
> > its original setting (kept in my application preferences).
> >
>
>    Create a Notification to handle sysNotifyAppQuittingEvent and switch
> back to your application.

Other than programming interest, it would end up the same, the biggest burden being to 
restore the current context when the
calculator was called. And unfortunately, I support OS 3.0, while notifications were 
introduced in 3.5 :(

Spawning the calculator seemed interesting, althouhg potentially risky since it would 
run in my heap and stack space, but like Ben
Combee observed, there is no Quit button.


--
Luc Le Blanc



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

Reply via email to