Does Palm have a list of which traps should "absolutly not" be trapped ?
It would be very helpfull to have something to reference when writting
trap code.
Ron
<pre>
At 5:13 PM -0300 1999/07/22, Ariel Barreiro wrote:
> > I was wondering if the palm generate any event that i can hook or
> > something may be something else. I looked up in the references but
without
> > success.
At 9:28 AM +0300 1999/07/23, Ramel Levin wrote:
>You can trap a hack called HwrDozeOff or something like it... I cant'
>remember the exact name. You can find it at SysTraps.h.
Ugh, please, absolutely do NOT try patching HwrDoze or HwrSleep!
The Palm OS does not currently have a convenient API for notifying apps
when the device is going to sleep. The best you can do is look for a
vchrPowerOff event (a.k.a. powerOffChr command key event) and take action
before and/or after passing the event on to SysHandleEvent which will call
the internal, system-use-only Palm OS SysSleep function when it sees this
event.
Note this is not the autoOffChr command key event... that's a 'request' to
fall asleep event rather than a 'demand' to fall asleep event. Auto-off
events are ignored, for example, when the stay-on-in-cradle preference is
selected.
Regards,
Jim Schram
3Com/Palm Computing
Partner Engineering
</pre>