Handle it in the Apps event loop rather than the form's. That's how it
worked for me..
<snip ....>
if ((event.eType == keyDownEvent) && (event.data.keyDown.chr == vchrFind)
&& (FrmGetActiveFormID() == MyFormID))
{
event.data.keyDown.chr = /* put some value which you'll interpret as
yours */
}
if (!SysHandleEvent(&event))
..................
<snip....>
----- Original Message -----
From: "Wojtek" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Tuesday, May 29, 2001 3:56 PM
Subject: How to react on Find icon
> I want my appl (while running) to react on a Find Icon.
> I catched the keyDownEvent and used EvtKeydownIsVirtual and then looking
> if it was vchrFind.
> But it doesn't work. It works when i'm looking i.e for vchrPageUp.
> How to catch the vchrFind?
>
> I'm using SDK 3.5 but my Palm has PalmOS 3.1
>
> Thanks.
>
> Wojtek
>
>
>
> --
> 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/