I am capturing the keyDownEvent but it seeems to be a step behind.

1) Whenever you detect a keystroke, return false from the handler so the OS handles it properly, and post your own unique event to the event queue. When your event arrives, calculate field C.


That won't work if your event arrives before the OS finishes handling the keystroke, but it's worth trying. Note: I haven't tried this method.

OR

2) Handle the keystrokes yourself by inserting them in the proper place in the proper field. You would have to keep track of which field has the focus, get the insertion point, and so on.

I've used something like this to allow the user to enter a minus sign at the beginning of numeric fields.

--
Regards,
Steve Mann
---
steve-at-slorevo.com
Available for Contract Work

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

Reply via email to