"Danko Radic" <[EMAIL PROTECTED]> wrote in message
news:15507@palm-dev-forum...
>
> What's the best technique to detect exiting from opened popup form when
> application is switched to another one (ie. Calc hardkey is pressed)? I'd
> like to close my fields and store data. Should I catch winExitEvent or
> keyDown on hardkeys..?

Make an invisible (unusable) button your default button in the popup -- when
the "calc" key is hit, the default will be pressed to close the window --
you can detect that from the FrmDoModal return value and do appropriate
things.

I've not tried this, but it seems like it could work.



-- 
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