just do
EvtGetEvent(&event, ticks);
if ((event.eType != keyDownEvent)
|| (!TxtCharIsHardKey(event.data.keyDown.modifiers, event.data.keyDown.chr))
|| ((event.data.keyDown.chr != vchrHard1) && (event.data.keyDown.chr !=
vchrHard2))
|| (FrmGetActiveFormID() != formID_abfrage)
|| (event.data.keyDown.modifiers & poweredOnKeyMask))
{
if (SysHandleEvent(&event))
continue;
if (MenuHandleEvent((void *)0, &event, &err))
continue;
}
I did it this to catch HardKey1 and 2, when the form (formID_abfrage) is
the active form and the key wasn't used to power up the device. I found
something similar in the source for Palm's breakout clone.
Henk
narender reddy wrote:
>
>
> hello sir,
>
> Thank u for giving ur suggestions.
> This (keyDownEvent ) is working fine when we comment
> //if (!SysHandleEvent(&event)) in AppEventLoop(void).
> by doing this, appStopEvent is unable to fire.
> so i am unable to come out from my application except
> Reseting the emulator.
>
> any suggestions please give us.
>
> regards
> Narender
>
--
-------------------------------------------------------------------------
[EMAIL PROTECTED] www.metaviewsoft.de
<A HREF="http://www.handango.com/PlatformTopSoftware.jsp?authorId=95946">
<IMG SRC="http://user.cs.tu-berlin.de/~jonash/werbung.jpg"></A>
-------------------------------------------------------------------------
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/