Alan's posted code solves the problem of how to restrict user's input while
they're using the grafitti input.  However, there are still ways to get
around it, for example when a user pastes a string from the clipboard into
that field and/or chooses to use the virtual keyboard.  So you're still
stuck with validating whether or not the text in that field is a valid
negative number, even if you use Alan's code.  That's why, in a similar
situation, I chose to implement a function that checks whether or not the
contents of a text field was valid or not (and displayed a warning if it
wasn't valid) when I was preparing to use the inputted values.  There are
other ways to deal with all that, you could choose to suppress the display
of the Palm standard virtual keyboard and substitute it with a custom
virtual keyboard.  But how you'd deal with pasting-invalid-contents to that
field from the clipboard, I don't know...

Martin




-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to