sure..

I work on CW R6, Emulator 3.0a6 and PalmOS ver 3.5

My code is something like this -

In MainForm, event handling I say-

 FrmSetEventHandle(form,MainHandleEvent);

 do{
 // get the event and dispatch it

 }while(till appStopEvent);

In MainHandleEvent(event){
  switch(event->eType){
    case appStopEvent:
         StopApplication();   // does necessary cleanup of memory
    break;
    case // other events

  }
}

This was in MainForm. I have 3 other forms and I do event handling even
in other 3 forms in the same fashion and catch appStopEvent in all. 

When I open second form from MainForm, I am actually closing MainForm
and control goes from Main.c to Second.c ..In second.c I display SecondForm
and do event handling for it in the same fashion.

I hope this helps u in understanding my problem...

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/

Reply via email to