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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...