(WTL) XP style password edit box
-
Hi!, my wtl app has a dialog that contains some edit boxes whit the password style, however, when i run the app and i type something in these boxes, instead of getting those nice "black dots" like you do on all XP password-edit boxes, i get some "weird" vertical lines, they kinda look like thick binary OR operators " | ". any idea of what im doing wrong? Thanks!
-
Hi!, my wtl app has a dialog that contains some edit boxes whit the password style, however, when i run the app and i type something in these boxes, instead of getting those nice "black dots" like you do on all XP password-edit boxes, i get some "weird" vertical lines, they kinda look like thick binary OR operators " | ". any idea of what im doing wrong? Thanks!
You have to set the right font, I think it was Tahoma, but not 100% sure. Jens
-
Hi!, my wtl app has a dialog that contains some edit boxes whit the password style, however, when i run the app and i type something in these boxes, instead of getting those nice "black dots" like you do on all XP password-edit boxes, i get some "weird" vertical lines, they kinda look like thick binary OR operators " | ". any idea of what im doing wrong? Thanks!
I had the same problem a while back when I added a manifest to a MFC project - the password edit boxes had vertical lines instead of nice round circle characters. The issue was that the edit control had the wrong font associated with it. In that project I added the following in the dialogs OnInitDialog() function...
GetDlgItem(IDC_EDIT_PASSWORD)->SetFont( CFont::FromHandle((HFONT)GetStockObject(DEFAULT_GUI_FONT)) );
In WTL, it might* look something like this...::SendMessage(GetDlgItem(IDC_EDIT_PASSWORD), WM_SETFONT, (WPARAM)AtlGetStockFont(DEFAULT_GUI_FONT), MAKELPARAM(FALSE, 0));
*your mileage may vary [ Jason De Arte | Toy Maker | 1001010.com ] -
Hi!, my wtl app has a dialog that contains some edit boxes whit the password style, however, when i run the app and i type something in these boxes, instead of getting those nice "black dots" like you do on all XP password-edit boxes, i get some "weird" vertical lines, they kinda look like thick binary OR operators " | ". any idea of what im doing wrong? Thanks!
Make sure your dialog font is set to
MS Shell Dlg
and notMS Sans Serif
. The dot thingy in XP is a Unicode character that MS Sans Serif does not contain. --Mike-- Personal stuff:: Ericahist | Homepage Shareware stuff:: 1ClickPicGrabber | RightClick-Encrypt CP stuff:: CP SearchBar v2.0.2 | C++ Forum FAQ ---- Pinky, are you pondering what I'm pondering? I think so Brain, but how will we fit the hamster inside the accordion? -
Hi!, my wtl app has a dialog that contains some edit boxes whit the password style, however, when i run the app and i type something in these boxes, instead of getting those nice "black dots" like you do on all XP password-edit boxes, i get some "weird" vertical lines, they kinda look like thick binary OR operators " | ". any idea of what im doing wrong? Thanks!