passwords in fields
Mark Mitchell
mark_mitchell at kmug.org
Tue Jan 22 04:53:00 EST 2002
chip writes:
Not sure how to create a field where typing a password is automatically
replaced with ********* during the typing? Is this not a property of a
field? Like set the password of fld 1 to true? Any ideas?
You can trap the keydown message in a card script before it gets to the field. Or put the keydown handler in the password
field itself.
on keydown whichKey
global thisPassword
put whichKey after thisPassword
put "*" after field "passwordField"
end keyDown
Alternatively, if you control the fonts on the computer, you can just set the textFont property to something like 'webdings'.
goodluck,
mark
More information about the use-livecode
mailing list