moonrise
asked on
TMaskEdit with PASSWORDCHAR set to *
I am using a TMaskEdit with passwordchar set to * to hide the 5 digits entered by the user. The mask is set to 99999;0;
The problem is that the 5 * are displayed all the time, even when there is no characters in the maskedit. I would like the maskedit to be blank when no character have been entered.
The problem is that the 5 * are displayed all the time, even when there is no characters in the maskedit. I would like the maskedit to be blank when no character have been entered.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you both.
Of course after Viktor compiled it he would change it to:
if (Length(Text) = 5) and not (key in ['0'..'9']) then key := #0
:-)
Cheers,
Raymond.
Thought for the day: Complexity and complication are not the same.
if (Length(Text) = 5) and not (key in ['0'..'9']) then key := #0
:-)
Cheers,
Raymond.
Thought for the day: Complexity and complication are not the same.
Hello jelousy :)
I didn't compile anything... I just know Delphi well ;-)
I haven't opened Delphi for more than a month if you want to know...
btw- Did you compile it to see if it really works, eh?
Cheers,
Viktor
I didn't compile anything... I just know Delphi well ;-)
I haven't opened Delphi for more than a month if you want to know...
btw- Did you compile it to see if it really works, eh?
Cheers,
Viktor
Of course I didn't compile it Viktor! That would be taking all the fun out of it!
Raymond.
Raymond.
Good for you... I just wanted you to know that I didn't compile it also :)
Raymond's code can be simply written as follows
if (Length(Text) = 5 and not (key in ['0'..'9'])) then key := #0
;-)
Cheers,
Viktor