simple modal questions
Doug Lerner
doug at webcrossing.com
Tue Jan 13 03:01:36 EST 2004
Thanks. Lots of useful stuff in there!
doug
On 1/13/04 4:32 PM, "Yves COPPE" <yvescoppe at skynet.be> wrote:
>
> Le 13 janv. 04, à 07:50, Dar Scott a écrit :
>
>>
>> On Monday, January 12, 2004, at 07:58 PM, Doug Lerner wrote:
>>
>>> (2) How do you make a text field into a "password" field (asterisked
>>> out)?
>>
>>
>
>
> here is a sample :
>
> suppose you have a fld named "pass"
>
> here is the script of the fld :
>
> local thisPassword
> on returninfield
> get thisPassword
> if it is <whateveryouwant> then
> ##do your stuff
> else
> answer "Tentative illégale !"
> close this stack
> end if
> end returninfield
>
> on enterinfield
> returninfield
> end enterinfield
>
> on keydown whichKey
> put whichKey after thisPassword
> put "*" after field "pass"
> end keyDown
>
> on backspaceKey
> put empty into field "pass"
> put "" into thisPassword
> end backspaceKey
>
> on deleteKey
> put empty into field "pass"
> put "" into thisPassword
> end deleteKey
>
>
> Hope this helps.
>
>
> Greetings.
>
> Yves COPPE
> yvescoppe at skynet.be
> _______________________________________________
> 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