You might need to call KeySetMask() first. This function filters out certain
keyDownEvents. After that, you can have your application watch for
vchrAutoOff, vchrPowerOff and/or hardPowerChr. Each of these keys is
described in the OS 3.5 SDK in Chars.h

         -Bob Whiteman

> -----Original Message-----
> From: Richard Anderson [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, August 22, 2000 8:45 AM
> To: Palm Developer Forum
> Subject: RE: Does app get notified when Palm switches "off"
> 
> 
> Hi,
> 
> I dont get posted a keydownEvent when I press the power button.
> 
> Rik
> 
> > -----Original Message-----
> > From:       Nesse, Rustin [SMTP:[EMAIL PROTECTED]
> > Sent:       22 August 2000 16:10
> > To: Palm Developer Forum
> > Subject:    RE: Does app get notified when Palm switches "off"
> > 
> > Well, there's a keydownEvent generated by pressing the 
> power button...
> > might want to take a gander at the header KeyMgr.h.
> > 
> > Hope that helps!
> > -Rus 
> > 
> > >-----Original Message-----
> > >From: Richard Anderson [mailto:[EMAIL PROTECTED]
> > >Sent: Tuesday, August 22, 2000 4:15 AM
> > >To: Palm Developer Forum
> > >Subject: Does app get notified when Palm switches "off"
> > >
> > >
> > >Hi,
> > >
> > >Does the Palm get notified when the Palm is switched off. 
> > >
> > >If I want my app to always start from the beginning, how do I 
> > >do this if it
> > >was running when the Palm was switched off. I would like to be 
> > >able to close
> > >my app when the Palm is turned off.
> > >
> > >Thanks
> > >
> > >Rik
> > >
> > >-- 
> > >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/
> 
> -- 
> 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 ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

Reply via email to