>>I am wanting to have an input field that echos a "*" for every letter that
>>the user types in. Is there a way that this can be done?
>
>The event loop is your friend. In your form event handler, look for
>keyDownEvent events. If they occur in your password field, copy the actual
>character to a buffer, change the character in the EventType structure to
>a bullet or asterisk, and return false for the handler. The default
>behavior for keyDown events for a text field is to enter the current
>character in the field, which you just changed.
This is a lot harder than it sounds, actually.. you also have to handle
backspace, highlight of several characters within the field and being
replaced/deleted, and the cursor being reset into the middle of the field
at the very least... and there are probably situations that I haven't
thought of...
Now granted, this is a small device with a small screen, someone peering
over your shoulder and seeing your password should be minimal.. and
graffiti input isn't exactly the easiest thing to do if you can't visually
verify that you have written it correctly.. but it would be nice to have a
feature like this built into fields in a later SDK version. It should be a
very easy thing for the OS to do since they have full control over the
internal buffer and how it is displayed on the screen.
Answering the first question, though.. if it works for your application,
you might offer a customized large keyboard on your screen that the user
can tap to enter a "password" of some sort.. you could then hide the
characters as they appear and have more full control of the buffer and of
their editing abilities on the field containing the password (allow only
backspace, for instance).
----------
Bradly J. Barton - [EMAIL PROTECTED]
Jenies Technologies Incorporated
(972) 602-1835
JTI.net
PalmInHand.com
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html