I am writing a communication program that requires a constant connection or
it will time out.  My main event loop looks like this:

do {
  EvtGetEvent(&event, WaitState );

  frmP = FrmGetActiveForm();
  ProcData(frmP);    // handles communications

  if (! SysHandleEvent(&event))
   if (! MenuHandleEvent(0, &event, &error))
    if (! AppHandleEvent(&event))
     FrmDispatchEvent(&event);

 } while (event.eType != appStopEvent);
}

This is pretty darn close to running a separate process in the background
independent of what the rest of the app is doing, except for the following:
I notice most of the form controls will stop the event loop if the stylus is
held on them. Is there any way to still process events during this time or
is it built into the GUI controls that it doesn't exit the controls event
handler until an evtPenUp occurs?.

TIA,
Mike



-- 
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