X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b70ababc146a97e9f1b2afc0193f92fa6c202dd9..4a0253b82b5eb307b917c59570db6d2d06dfbadf:/src/msw/textctrl.cpp?ds=sidebyside diff --git a/src/msw/textctrl.cpp b/src/msw/textctrl.cpp index fa88d2dc95..6965ccf42a 100644 --- a/src/msw/textctrl.cpp +++ b/src/msw/textctrl.cpp @@ -115,7 +115,8 @@ bool wxTextCtrl::Create(wxWindow *parent, wxWindowID id, if ( !CreateBase(parent, id, pos, size, style, validator, name) ) return FALSE; - SetValidator(validator); + // Validator was set in CreateBase + //SetValidator(validator); if ( parent ) parent->AddChild(this); @@ -139,6 +140,9 @@ bool wxTextCtrl::Create(wxWindow *parent, wxWindowID id, else msStyle |= ES_AUTOHSCROLL; + if (m_windowStyle & wxHSCROLL) + msStyle |= (WS_HSCROLL | ES_AUTOHSCROLL); + if (m_windowStyle & wxTE_READONLY) msStyle |= ES_READONLY;