How can i make a numeric field accept the minus (-) field?
Thanks!
Régis Daniel de Oliveira
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/
"José dos Santos Machado" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Long answer: You can use a workaround for this. You could trap the
> keyDownEvent before the field and write it by hand on the Field, if you
> wanna to.
That's a good idea actually. I never really thought of
Alan Ingleby escreveu:
All you need to check for is that the insert position is at the start of the
field, and that there isn't already a "-" after the insert position. The OS
will then handle all the other issues for you (Such as making sure you don't
enter more than one "." for example.
You got
"Régis Daniel de Oliveira" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> How can i make a numeric field accept the minus (-) field?
Short answer : You can't. Use a non-numeric field, and filter the keydown
events.
--
For information on using the Palm Developer Forums, or to un
> How can i make a numeric field accept the minus (-)
field?
http://www.escribe.com/computing/pcpqa/search.html?query=numeric+field+minus
HTH,
Oliver
__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
-
> That's a good idea actually. I never really thought
> of doing it that way...
Would that work, though, if the user chose to pop open
the
on-screen keyboard?
Oliver
__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebu
Alan Ingleby escreveu:
"Régis Daniel de Oliveira" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
How can i make a numeric field accept the minus (-) field?
Short answer : You can't. Use a non-numeric field, and filter the keydown
events.
Long answer: You can use a workaround for this.