Cool this is working, except, what is the form of the structure for the
screenX, screenY?
Thanks,
Jason
----- Original Message -----
From: "Steve Mann" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Wednesday, April 05, 2000 12:52 PM
Subject: Re: Intercepting Form Buttons From within an EventHandler
<LYR3109-2716-2000.04.05-09.36.42--smann#[EMAIL PROTECTED]>
<LYR3109-2730-2000.04.05-10.56.38--smann#[EMAIL PROTECTED]>
> >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
>
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html