Page 1 of 1

Password Fields

Posted: Tue Sep 18, 2007 3:27 pm
by Barry O'Brien
Hi,

I have a GET that is created from a resource file and is set as a password field.

Is there any way to change the character that is used to mask the password?
Currently it uses a fat pipe character (like "|" but thicker!).
Ideally I would like it to use the Windows default mask.

Does anyone know if this is possible?

Kind regards,

Barry O'Brien

P.S. Is it possible to add screenshots to my post without having to link to an external URL?

Posted: Tue Sep 18, 2007 3:47 pm
by Biel EA6DD
Try to use TAHOMA font, and will look like winXp password style.

Posted: Tue Sep 18, 2007 4:54 pm
by MOISES
Why donĀ“t you add xp themes support to your .rc?

#ifdef __FLAT__
1 24 ".\WinXP\WindowsXP.Manifest"
#endif

Posted: Tue Sep 18, 2007 11:40 pm
by driessen
Barry,

Why don't you use this :

Code: Select all

REDEFINE oGET VAR cPassw ID 101 of oDlg PICTURE "!!!!!!"
oGET:lPassWord := .T.
If you type in the password, only asterisks will appear.

Good luck.

Posted: Wed Sep 19, 2007 9:04 am
by Barry O'Brien
Thanks everyone for your input!

Biel's solution is the only one that I could get to work, but it does work perfectly for my needs.

Thanks again,

Barry