[EMAIL PROTECTED] wrote:
I know this is not the 'right' approach--but I want to put a "Quit" button in 
my app. But I can't figure out the code to actually quit the app and go back to the 
launcher.

I must be missing something VERY obvious. Anyway, any response is appreciated.

Thanks in advance.


Is not recommended to have a quit button, but there is nothing too wrong if you put it there. I'll add one for game in the game version.

Is not obvious, you need to enqueue the Launcher virtual key:

EventType eventToAdd;

MemSet(&eventToAdd, sizeof(EventType ), 0);
eventToAdd.eType = keyDownEvent;
eventToAdd.data.keyDown.chr = launchChr;
eventToAdd.data.keyDown.modifiers = commandKeyMask;
EvtAddEventToQueue (&eventToAdd);


there is another methods but this is the only one recommended by the Palm docs.

regards

Erico Franco

MicroMagic

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

Reply via email to