Delphi and Kylix

Moderators: pritaeas
Number of threads: 7264
Number of posts: 19073

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
password char and the windows XP bullet Posted by ucbones on 21 Jul 2003 at 2:50 AM
Hi,

I can't seem to work out how to get my password field to mask input with the XP-style bullet. MSWord lists its properties as follows:

ASCII(hex): 095
Unicode(hex): 2022
ASCII(decimal):149

I've tried putting #095,#95,#2022,#149 but none of them work.

Any ideas?

Many thanks,

ucbones
Report
Re: password char and the windows XP bullet Posted by zibadian on 21 Jul 2003 at 3:54 AM
: Hi,
:
: I can't seem to work out how to get my password field to mask input with the XP-style bullet. MSWord lists its properties as follows:
:
: ASCII(hex): 095
: Unicode(hex): 2022
: ASCII(decimal):149
:
: I've tried putting #095,#95,#2022,#149 but none of them work.
:
: Any ideas?
:
: Many thanks,
:
: ucbones
:
Have you set the font to the correct type? Fonts can have different characters for the same character code.
Report
Re: password char and the windows XP bullet Posted by ucbones on 21 Jul 2003 at 4:04 AM
: Have you set the font to the correct type? Fonts can have different characters for the same character code.

yes!
Report
Re: password char and the windows XP bullet Posted by OxyzN on 26 Jul 2003 at 8:51 AM
: : Have you set the font to the correct type? Fonts can have different characters for the same character code.
:
: yes!
:
This might help a lot, though I'm not sure... Create the Edit box and as the Password masking character choose the letter "h" not "H", for the font choose Marlett (this is Windows special font, this font includes the minimize, maximize, restore, and close characters and others also). You'll notice that the font is Bold, if you don't want it as bold, go to the Object Inspector window and Expand the Font property, then Expand the Style property and change fsBold to False. I don't know if it is a bug, but Delphi always leaves this as fsBold = True.
Now if you want to make it look as Windows XP look and if you have Delphi 7, you have a sort of invisible component (while run-time) that can make your application controls to look like Windows XP controls. Go to Win32 tab on your component pallete and add the XPManifest to your application.
Report
Re: password char and the windows XP bullet Posted by khf314 on 13 Oct 2011 at 11:41 AM
The Marlett font for this purpose is kind of wide & it does not give a balanced look to the rest of the form IMHO.

An alternative is to use the Wingdings font with PasswordChar s (that's lower case).



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.