You could try letting the user type what they want, then retrieving
the text and parsing the unwanted values out, then redisplaying it.
This would be kind of confusing for the user, though, since they'd
be happily tapping away, only to find that 50% of what they tapped
out would actually appear.
You could also just slap together your own keypad inside your app
using repeating buttons or something (I do this all the time, since
the Palm keypad's buttons are too small for some of my users to read
when they're doing inventory stuff in odd warehouse/lot like places).
It doesn't really cost TOO much in overhead...but you have to keep
that in mind too.
-Rus
>-----Original Message-----
>From: Trung Nguyen [mailto:[EMAIL PROTECTED]]
>Sent: Friday, June 09, 2000 12:40 AM
>To: Palm Developer Forum
>Subject: intercepting keys pressed from palm keyboard
>
>
>Hi,
>I'm hoping someone could help.
>I've got a field that should only accept certain characters.
>(say 0-9 and
>operational characters, +-*/= ).
>I've got it working such that I detect keyDownEvents and check
>the character
>is a valid one, and ignore the invalid ones. However, if the
>keyboard was
>popped up, the form handler's detection for keyDownEvents don't work
>anymore, and via the keyboard any such character can be
>entered. Is there
>any way to suppress unwanted characters from being pressed on
>the keyboard,
>or has there been any other way to work around this?
>Many thanks,
>Trung
>
>--
>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/