Jump to content

Password Strength Meter


Ronbral

Recommended Posts

  • 3 months later...
On 22/04/2019 at 09:51, CoderU said:

Como adicionar botão ou ícone showpassword ou não

Hi,

There are several ways to do what you want. I use a 3 sec timer to display the password and re-hide. As follows:

procedure TFRPW.iEyeClick(Sender: TObject);
begin //Show secret password
   UniTimer.Enabled := true;
   Ed1.PasswordChar := #0;
end;


procedure TFRPW.UniTimerTimer(Sender: TObject);
begin //Hide password
  UniTimer.Enabled := false;
  Ed1.PasswordChar := #42; //joker char
end;

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...