In your application's event loop (not the form's event loop), add something
similar to the following:
if (event.eType == keyDownEvent)
{
if (event.data.keyDown.chr >= hard1Chr && event.data.keyDown.chr <=
hard4Chr)
continue;
}
You will probably have to adjust the hard1Chr and hard4Chr to intercept the
correct keys...
-Marc Campbell
[EMAIL PROTECTED]
"Marcio" <[EMAIL PROTECTED]> wrote in message news:13677@palm-dev-forum...
>
> thanks Robert,
>
> but the penDown and penUp events are not triggered too. They're triggered
> only when I tap in the upper screen. In the icons and graffiti area
they're
> not triggered.
>
> I really don't know what to do...
>
> Anybody had already done it?
>
> Thanks,
> Marcio
>
> > Marcio,
> >
> > >I've seen in the documentation that a keyDownEvent should be triggered
> when
> > >any of them is pressed, so I could verify the eventPtr->data.chr
> information
> > >to know what key was pressed.
> > >
> > >But, I saw in the debugger that the event is not triggered!!! If I
press
> the
> > >Applications icon with a break point in the keyDown event, for example,
> it
> > >doesn't stop, and goes to Applications!!!
> >
> > The documentation may very well be wrong, but there's at least one easy
> > solution. Just handle the penDown (or penUp) event and don't pass
> > it on to the system...
> >
> > Good luck,
> > --
> > Robert Jen ([EMAIL PROTECTED], http://www.rjen.com)
> >
>
>
>
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/