I noticed that if I have a field that only accepts numbers that if the "abc" in
the graffiti area is pressed the alphanumeric keyboard comes up instead of the
numeric keyboard. I'm guessing that this is a bug since SysKeyboardDialog can
use kbdDefault as a parameter. kbdDefault is smart and will bring up the
appropriate keyboard based on the input field parameters.
Well, I figured out a way to make the numeric keyboar come up when the alpha
keyboard button is pressed by doing the following before the SysHandleEvent.
// make numeric keyboard come up when alpha keyboard button is pressed
if(FrmGetActiveFormID() == formID_register) {
if(event.eType == keyDownEvent) {
if(event.data.keyDown.chr == vchrKeyboardAlpha) {
event.data.keyDown.chr = vchrKeyboardNumeric;
}
}
}
This seems like such a kludge. Is there a more elegant way that I am missing?
Thanks,
Mike
__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/