"henryxu" <[EMAIL PROTECTED]> a écrit dans le message de news: 
[EMAIL PROTECTED]
>I want to exit the application automatically after the card is removed or 
>inserted.
>

According to Palm OS documantation, the proper way to exit an application is 
to launch the launcher.
To do that you simulate a tap on the home key by enqueing the launchChr key 
down event.

EventType eventToAdd;

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


-- 
Regis St-Gelais
www.laubrass.com




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

Reply via email to