setting up password fields
Chipp Walters
chipp at chipp.com
Fri Mar 21 13:09:00 EST 2003
on keydown whichKey
global thisPassword
put whichKey after thisPassword
put "*" after field "password"
end keyDown
on backspaceKey
global thisPassword
put empty into field "password"
put "" into thisPassword
end backspaceKey
on deleteKey
global thisPassword
put empty into field "password"
put "" into thisPassword
end deleteKey</format>
on returnInField
send mouseUp to btn "Next"
end returnInField
> -----Original Message-----
> From: use-revolution-admin at lists.runrev.com
> [mailto:use-revolution-admin at lists.runrev.com]On Behalf Of Chris
> Sheffield
> Sent: Friday, March 21, 2003 2:40 PM
> To: use-revolution at lists.runrev.com
> Subject: setting up password fields
>
>
> You're all going to be sick of me by the end of the
> day! :-) I'm just getting into the nitty gritty of
> my GUI. And since I'm new to Revolution, I've got
> lots of questions.
>
> I know this one has been discussed a while back. I
> found some posts in an old archive, but I was
> wondering if anyone has a better (newer) way of
> setting up a regular field to accept a password entry
> (i.e. put a '*' in place of each character). I tried
> some code from an old archive something like:
>
> on keydown whichKey
> global thisPassword
> put whichKey after thisPassword
> put "*" after field "passwordField"
> end keyDown
>
> But this doesn't quite work. If the user has to
> modify what he's typed, or if he highlights the entire
> password, deletes it, and starts over, the value in
> thisPassword just keeps building on itself.
>
> Does anyone have a solution? Preferably something
> that handles Delete and Backspace as well? I'd like
> something that works like "ask password", but in a
> regular field. Is there any way I can look at the
> code behind the ask password dialog?
>
> Thanks,
>
> Chris Sheffield
> Read Naturally
>
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
> http://platinum.yahoo.com
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list