At 01:34 PM 5/22/2004, you wrote:
Hi Ben,

That is interesting.  So the solution would be to handle this event (handled =
true) and generate a new keyDownEvent with data.keyDown.chr = '*'?  I'd also
add a "signature" (like setting screenX to 0xFFFF) so that you know the event
should be ignored when it appears in your event handler - to allow '*' to be
part of any password.

I guess you could also handle the event (handled = true) and insert '*' into
the field yourself, but this seems like more work.

I'd probably manually update the field; the problem with posting a new character event is that it makes the password field do weird things if the used actually entered asterisk characters while the field had focus.


The other thing would be to make your own EventType struct on the stack, and call FrmHandleEvent on it directly, rather than passing the system's struct through. I've not tested that, but it should work.


-- Ben Combee, DTS technical lead, PalmSource, Inc. Read "Combee on Palm OS" at http://palmos.combee.net/



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

Reply via email to