"Anakym kerberos-hotmail" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > EventType stopEvent; > MemSet(&stopEvent, sizeof(stopEvent), 0); > stopEvent.eType = appStopEvent; > EvtAddEventToQueue(&stopEvent); > > esta es una forma... pero deberias ver cuando llamar... yo lo añado al > evento de un boton de salida. > > this is one way... but you need call , for this, i like the button control > with EXIT label >
I will quote Henk Jonas on this one: <quote> Which is the very, very wrong way to stop an application. On Palm OS, you can't just stop an application, you have to provide the OS a new application, and the OS will then stop for you the current one. Please read the Palm OS Companion about it (Exit to Launcher, enqueue the AppHome key) before posting wrong infos. <end quote> If you whant to go by the book, the doc says 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); -- 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/
