This is my code.
Can you tell me what's wrong?
static void AppEventLoop(void)
{
UInt16 error;
EventType event;
do {
EvtGetEvent(&event, SysTicksPerSecond() * 3);
if (momentum) {
if(event.eType == keyDownEvent)
{
if (event.data.keyDown.chr == hard2Chr)
{
if(InScan == false)
{
ScanCmdStartDecode();
HsEvtResetAutoOffTimer(SysTicksPerSecond()*1, true);
InScan = true;
}
continue;
}
}
}
if (! SysHandleEvent(&event))
{
if (momentum) {
if (!libOpen)
break;
}
if (! MenuHandleEvent(0, &event, &error))
if (! AppHandleEvent(&event))
FrmDispatchEvent(&event);
}
} while (event.eType != appStopEvent);
}
Thanks,
Gonzalo.
> -----Original Message-----
> From: [EMAIL PROTECTED]
[mailto:bounce-palm-dev-
> [EMAIL PROTECTED]] On Behalf Of Alan Ingleby
> Sent: Jueves, 26 de Diciembre de 2002 11:24 p.m.
> To: Palm Developer Forum
> Subject: Re: Button Event...
>
> Not quite sure what you're describing here. Can you explain what
you're
> using the custom alert for?
>
> General rule is to return handled=true for events you don
> 't want the system to handle, but this type of event is probably
> intercepted
> before the formhaqndleevent, so you'll have to look for it elsewhere
in
> your
> event loop.
>
> Alan
> "Gonzalo Piano" <[EMAIL PROTECTED]> wrote in message
> news:106594@palm-dev-forum...
> >
> > Hi guys!
> >
> > I'm capturing an Event of the Address Button, in order to execute a
scan
> > (PSC module) from an application made by me. But when I get a
> > FrmCustomAlert, pressing the button gets my out the application (in
this
> > case I go to the Address App, because I chose that button).
> >
> > How can I get to fix that? I don't want to lose the Button Event.
> >
> > Thanks,
> > Gonzalo.
> >
> >
> >
> >
>
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
> please see http://www.palmos.com/dev/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/