Gave me fits too !!! Thanks, got it sussed now.

Rik

> -----Original Message-----
> From: Bradly J. Barton [SMTP:[EMAIL PROTECTED]]
> Sent: 22 August 2000 17:11
> To:   Palm Developer Forum
> Subject:      Re: Does app get notified when Palm switches "off"
> 
> From: "Nesse, Rustin" <[EMAIL PROTECTED]>
> > Hmm...have you been catching the power key in your form event handler,
> > or in the event loop, right before you call SysHandleEvent?  You can
> > call your exit handling code in the event loop, too, I think.
> 
> Good point, Rus.. I had forgotten that, too. It gave me fits when I was
> trying to figure it out. Yes, you will never get the key events down "in
> your code" for the power or hard keys because the SysHandleEvent command
> catches it and acts on it before most folks' code gets a chance to handle
> it. You have to check for the key you are trying to trap before you call
> SysHandleEvent and after the EvtGetEvent.
> 
> ----------
> Bradly J. Barton - [EMAIL PROTECTED]
> Jenies Technologies Incorporated
> (972) 602-1835
> http://www.JTI.net
> http://PalmInHand.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