Anu,
> I am not sure when to call appStopEvent
> in the application. Basically, now I am calling it in all event handling
> functions but it is not being triggered
U need not call it in all form handle events. Infact u can check it in event
loop function like this.
PilotMain( )
{
start application code..
gotoform(urfirstform);
eventloop();
return 0;
}
eventloop( )
{
do{
EvtGetEvent(&event, evtWaitForever);
....
.......
}while(event.etype != appstopevent)
}
when evr u hit the silk screen buttons, stopevent will fire.
or
If u want to exit the app for ur cntol event ..u can do like this
UrformHandleEvent( )
{
declare the vars..req ----
----
case ctlSelectEvent: // A control button was pressed and released.
// P3. If the exit button is pressed, stop the application.
if (event->data.ctlEnter.controlID == urexitButton)
{
MemSet(&newEvent, sizeof(EventType), 0);
newEvent.eType = appStopEvent;
EvtAddEventToQueue(&newEvent);
}
}
Hope this works..for u..:)
regards
Prasad
We unwire the web
----- Original Message -----
From: Anuradha J <[EMAIL PROTECTED]>
To: Palm Developer Forum <[EMAIL PROTECTED]>
Sent: Tuesday, November 28, 2000 5:28 AM
Subject: appStopEvent call
> There are about 4 forms in my application and I can traverse from one
> to another by closing the previous form. I am not sure when to call
appStopEvent
> in the application. Basically, now I am calling it in all event handling
> functions but it is not being triggered. How to generate this event?
>
> Also, when the application is running, if user just clicks on Applications
> icon and views other applications my appStopEvent is not generated.
>
>
>
> Anuradha
>
>
>
> __________________________________________________
> FREE voicemail, email, and fax...all in one place.
> Sign Up Now! http://www.onebox.com
>
>
> --
> 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/