DEBUG TIP:
In your main app event loop try:
if (!PreprocessEvent(&event)) { // Get an Event before the system handles
it!
if (!SysHandleEvent(&event)) {
if (!MenuHandleEvent(NULL, &event, &error)) {
if (!ApplicationHandleEvent(&event)) {
FrmDispatchEvent(&event);
}
}
}
}
This is generally useful for all sorts of difficulties when you may want to
do custom behavior that the default Palm handlers do not do.
in PreprocessEvent you have
...
case keyDownEvent:
// Tap on 123 silk screen area?
if (event->data.keyDown.chr == vchrKeyboardNumeric ) { //
GUESS this is right
// We will do something about this event instead of
system default
handled = true;
}
...
break;
...
I don't KNOW exact what event you will get.
But you can easily find out for yourself by setting a breakpoint inside this
just before you tap on the 123 area!
Regards,
Randy Maxwell
-----Original Message-----
From: Fitzsimons, Jeff [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 02, 2000 11:06 AM
To: Palm Developer Forum
Subject: RE: How to intercept Graffiti keyboard command?
Unfortunately, my keyDownEvent handler doesn't even trigger a breakpoint
when the '123' is tapped, so it doens't appear to generate _any_ kind of key
event. At least, not one that my app ever sees.
Jeff
> -----Original Message-----
> From: Bob Whiteman [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, August 01, 2000 4:45 PM
> To: Palm Developer Forum
> Subject: RE: How to intercept Graffiti keyboard command?
>
> I beleve that when the user hits the silkscreened 123 button you'll see a
> keyDownEvent with a character of vchrKeyboardNumeric.
>
> -Bob Whiteman
>
> > -----Original Message-----
> > From: Fitzsimons, Jeff [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, August 01, 2000 4:28 PM
> > To: Palm Developer Forum
> > Subject: How to intercept Graffiti keyboard command?
> >
> >
> >
> > Hi all,
> >
> > My app's main form has no input fields but accepts
> > alphanumeric input (it's
> > a calculator, of sorts, but there's not room to display a
> > numeric keypad all
> > the time).
> >
> > I would like to pop up an on-screen numeric keypad when the
> > user taps on the
> > little '12345' dot in the silk-screened Graffiti area. I
> > realize I'd have
> > to write my own keypad, since the system's
> > SysKeyboardDialog() requires an
> > active field. However, I cannot seem to find any event
> > relating to this.
> >
> > Is it possible to intercept the '12345' tap before the system
> > gets ahold of
> > it?
> >
> > Jeff
> >
> >
> > --
> > 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/
--
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/