Visual 2005/2008 - problem with wxTextCtrl Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
Leszek
In need of some credit
In need of some credit
Posts: 3
Joined: Wed Apr 02, 2008 7:53 pm

Visual 2005/2008 - problem with wxTextCtrl

Post by Leszek »

Hello.

If I build myApp under Visual C++ 2005/2008 Express Edition, I have problem with wxTextCtrl.

I added wxTE_PASSWORD style to my wxTextCtrl.
Durring writting in wxTextCtrl instead of stars I have empty space.

But If I compile the same code under Visual 2003 everything is ok.

Code:

long lStyle = wxTE_PASSWORD | wxTE_PROCESS_ENTER;

wxTextCtrl* pPassword = new wxTextCtrl(this, wxID_PASSWD_CTRL, wxT(""), wxDefaultPosition, wxDefaultSize, lStyle);


wxID_PASSWD_CTRL > wxID_HIGHEST.

Thanks
Jorg
Moderator
Moderator
Posts: 3971
Joined: Fri Aug 27, 2004 9:38 pm
Location: Delft, Netherlands
Contact:

Post by Jorg »

Please post in the proper forum the next time. Thanks.

- Jorgen
Forensic Software Engineer
Netherlands Forensic Insitute
http://english.forensischinstituut.nl/
-------------------------------------
Jorg's WasteBucket
http://www.xs4all.nl/~jorgb/wb
ArKay
Knows some wx things
Knows some wx things
Posts: 41
Joined: Wed Mar 26, 2008 1:38 pm
Location: Germany

Post by ArKay »

Bizarre. I don't have such problems with VS 2008 Professional.

I would build the samples/widgets wx demo to see if you run into the same problem there.
Leszek
In need of some credit
In need of some credit
Posts: 3
Joined: Wed Apr 02, 2008 7:53 pm

Post by Leszek »

I am sorry.:)

My mistake.

I repaired it.

If I don`t call method SetFont on the wxTextCtrl with style
wxTE_PASSWORD everything is OK.(2008 Express)

If I call SetFont and compile program under Visual 2003 everything is ok.

I use not standard system font("MyriadPro-Regular").Of course I installed this font before.

Thanks!
Post Reply