X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1cea736e035f7bf6dbe696d5e724cfdb17c35686..769c3372a2bd68c45d1a4afc8462d3b7939decb1:/src/osx/textctrl_osx.cpp?ds=sidebyside diff --git a/src/osx/textctrl_osx.cpp b/src/osx/textctrl_osx.cpp index 226c24f2a8..0af4f04bcc 100644 --- a/src/osx/textctrl_osx.cpp +++ b/src/osx/textctrl_osx.cpp @@ -95,7 +95,7 @@ bool wxTextCtrl::Create( wxWindow *parent, const wxValidator& validator, const wxString& name ) { - m_macIsUserPane = false ; + DontCreatePeer(); m_editable = true ; if ( ! (style & wxNO_BORDER) ) @@ -112,7 +112,7 @@ bool wxTextCtrl::Create( wxWindow *parent, } - m_peer = wxWidgetImpl::CreateTextControl( this, GetParent(), GetId(), str, pos, size, style, GetExtraStyle() ); + SetPeer(wxWidgetImpl::CreateTextControl( this, GetParent(), GetId(), str, pos, size, style, GetExtraStyle() )); MacPostControlCreate(pos, size) ;