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. You could trap the keyDownEvent before the field and write it by hand on the Field, if you wanna to.


You'll have a little work to do on this, but i assure you it works.

PalmOS Advanced Programming book has an example on this.

Otherwise you can create a normal text field and make your system only accepts numbers, signs and dots (or commas) on it. I think it's harder to do.

Cheers !

-- J. Machado
-- [EMAIL PROTECTED]


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

Reply via email to