Ignore hints on wxTE_PASSWORD controls when not supported natively

There is no way to show the hint without native support in a control with
wxTE_PASSWORD style, so simply ignore them completely in this case.

Closes #17078.
This commit is contained in:
Vadim Zeitlin
2016-06-28 14:40:52 +02:00
parent 967bdbf994
commit 3dc54df247
4 changed files with 10 additions and 0 deletions

View File

@@ -1102,6 +1102,7 @@ MyPanel::MyPanel( wxFrame *frame, int x, int y, int w, int h )
m_password = new MyTextCtrl( this, wxID_ANY, wxT(""),
wxPoint(10,50), wxSize(140,wxDefaultCoord), wxTE_PASSWORD );
m_password->SetHint("Don't use 12345 here");
m_limited = new MyTextCtrl(this, wxID_ANY, "",
wxPoint(10, 90), wxDefaultSize);