If you are referring to the User pressing the PowerOff-On key, then you can
intercept the key-down event in the application loop.
You can do this by adding
if (e.eType == keyDownEvent)
        if (FrmDispatchEvent(&e))
                continue;
before the line
        if (!SysHandleEvent(&e))
in your event handle loop. Then handle the event in your formEventHandler.
Otherwise on systems where the Notification Feature Set is present, you can
use the notification process

LionScribe

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Giorgos
Sarris
Sent: Thursday, August 28, 2003 9:07 AM
To: Palm Developer Forum
Subject: Which is the 'Power off Palm' event Type?


Hi to all,

I have CW9 and C++.
I have made a game and 2 cases in order to pause and
un-pause my game.

case winExitEvent:
if (event.data.winExit.exitWindow == (WinHandle)
FrmGetFormPtr(PistaForm))
//Bla bla bla
break;

case winEnterEvent:
if (event.data.winEnter.enterWindow == (WinHandle)
//Bla bla bla
break;

But want also my game to be paused when a user tries
to powers off his palm and then power it on again.

What case should I use in my
static void AppEventLoop(void) ???

Thanks
Giorgos

____________________________________________________________
Do You Yahoo!?
Αποκτήστε τη δωρεάν @yahoo.gr διεύθυνση σας στο http://www.otenet.gr

--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to