Create wxStaticText with correct label directly in wxTextSizerWrapper.
This is shorter and arguably more clear than doing it in two steps as we did before and also works in wxUniv, unlike creating wxStaticText with empty label and setting it later. Closes #13858. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70433 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -98,9 +98,8 @@ public:
|
||||
protected:
|
||||
virtual wxWindow *OnCreateLine(const wxString& line)
|
||||
{
|
||||
wxStaticText* const win = new wxStaticText(m_win, wxID_ANY, "");
|
||||
win->SetLabelText(line);
|
||||
return win;
|
||||
return new wxStaticText(m_win, wxID_ANY,
|
||||
wxControl::EscapeMnemonics(line));
|
||||
}
|
||||
|
||||
virtual void OnOutputLine(const wxString& line)
|
||||
|
Reference in New Issue
Block a user