Since your application is in charge of the event loop, it can decide not to pass key 
down events on to the field if it deems them inappropriate at this point (based on the 
current state of the field, as determined through the public field APIs). However, be 
warned that the keyboard dialog works with its own field, and when the dialog is 
closed, dumps the text into the field. To demonstrate what this, try tapping in the 
address lookup field, then bringing up the keyboard dialog, then entering something 
that isn't a last name in your address book. When the dialog is closed, a bunch of 
characters will appear for a moment and then go away. You should be able to use the 
lookup field as a starting point for your own validation needs.

If you want validation that can only be done when the field loses focus, you're in for 
a tougher time. Putting up a dialog at this point may not be possible, depending upon 
why the field is losing focus.
--
Peter Epstein
Palm Inc. Developer


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

Reply via email to