>Where? Inside of an eventloop?
Sure. In your main event loop, you call various event handlers.
There's no reason why you can't include an event loop inside an event
handler. You look for only the events you're interested in and ignore
the rest. For instance:
if ( EvtSysEventAvail ( false ))
{
EvtGetEvent ( &event, 0 );
SysHandleEvent ( &event );
if ( event.eType == keyDownEvent )
{
Boolean handled = MainFormProcessKeystroke (
( UInt8 ) event.data.keyDown.chr, true );
} }
This doesn't work for all situations. For a long-running process,
like a complex calculation, where the only thing you want to let a
user do is Cancel the operation, it makes sense. For any kind of
modal situation, it makes sense.
FrmDoDialog does this, for instance. It intercepts all events, and
handles them itself, until the user hits a Button on the dialog.
I hope that helps.
Regards,
Steve Mann
-------------------------------------------
Creative Digital Publishing Inc.
1315 Palm Street, San Luis Obispo, CA 93401-3117
-------------------------------------------
805.784.9461 805.784.9462 (fax)
[EMAIL PROTECTED] http://www.cdpubs.com
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html