Search code examples
c++builderc++builder-2007

TcxMaskEdit for password field


I have a EditText declarated as TcxMaskEdit for password field and when I write on it the characters show as ***** but I want that sometimes show the characters, but I don´t find the method for that.


Solution

  • Have you tried simply using a normal TEdit with its PasswordChar property set as desired? You can set it to '*' when you want to hide the password, and set it to 0 when you want to show the password.