You could catch the keydown event sent by the power button (keyBitPower).
-Rus
>-----Original Message-----
>From: HowY [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, June 22, 2000 9:12 AM
>To: Palm Developer Forum
>Subject: Custom Event
>
>
>Hi
>
>Im trying to generate a power on event to test
>aside from the nilEvent sent when the device is
>powered up
>
>How is a custom event(type) defined
>
>if i try to addEventToQueue (WakeUpEvent)
>ie:
> eventP->eType=WakeUpEvent;
> EvtAddEventToQueue (eventP);
>
>it complains that there is no such WakeUpEvent.
>
>How would a custom event be defined? and where?
>
>Thanks!
>
>
>
>
>
>--
>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/