simple modal questions
Doug Lerner
doug at webcrossing.com
Tue Jan 13 17:46:35 EST 2004
On 1/14/04 12:37 AM, "Wouter" <wouter.abraham at pi.be> wrote:
>
> On 13 Jan 2004, at 10:12, use-revolution-request at lists.runrev.com wrote:
>
>> Message: 10
>> Date: Tue, 13 Jan 2004 08:32:58 +0100
>> From: Yves COPPE <yvescoppe at skynet.be>
>> Subject: Re: simple modal questions
>> To: How to use Revolution <use-revolution at lists.runrev.com>
>> Message-ID: <B60C9434-459A-11D8-BCAB-003065E14B04 at skynet.be>
>> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>>
>>
>> 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
>>
>>
>
>
>
> What about the :
> < ask password clear > command?
>
> Try this in a button:
>
> on mouseUp
> ask password clear "Enter your password"
> put it
> end mouseUp
>
> Greetings,
>
But that requires you to get the password in a separate dialog, right?
doug
More information about the use-livecode
mailing list