Recent

Author Topic: <SOLVED>TMaskEdit problem  (Read 3364 times)

undermanager

  • Jr. Member
  • **
  • Posts: 58
<SOLVED>TMaskEdit problem
« on: June 07, 2012, 11:42:36 pm »
Mmmmm. Can't seem to work out how to get this working so that the box is empty to start with, and then as you type, it gets filled with asterixes.

I have put a TMaskEdit control on my form called medtPassword.

I have set the EditMask property to ******** and have also put this in my code:

medtPassword.PasswordChar := '*'

but to no avail. Can anyone give me a pointer please?

« Last Edit: June 08, 2012, 01:22:01 am by undermanager »

Avishai

  • Hero Member
  • *****
  • Posts: 1021
Re: TMaskEdit problem
« Reply #1 on: June 07, 2012, 11:51:41 pm »
I think all you have to do is set PasswordChar to '*'.  I do not think you need to set anything else.  Leave EditMask blank.
Lazarus Trunk / fpc 2.6.2 / Win32

undermanager

  • Jr. Member
  • **
  • Posts: 58
Re: TMaskEdit problem
« Reply #2 on: June 08, 2012, 01:21:40 am »
Thanks. Sorted now.  I also needed to set PasswordChar in FormCreate. :D

 

TinyPortal © 2005-2018