X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/56d2f75071fc2a29ec10abe97c5a908bb35f30f4..cd4915e2c915d6c7611b38fa5182e2d84d1ca669:/contrib/src/xml/xh_text.cpp?ds=sidebyside diff --git a/contrib/src/xml/xh_text.cpp b/contrib/src/xml/xh_text.cpp index 8775d86cdf..a5d9b35a93 100644 --- a/contrib/src/xml/xh_text.cpp +++ b/contrib/src/xml/xh_text.cpp @@ -30,17 +30,18 @@ wxTextCtrlXmlHandler::wxTextCtrlXmlHandler() : wxXmlResourceHandler() ADD_STYLE(wxTE_PASSWORD); ADD_STYLE(wxTE_READONLY); ADD_STYLE(wxHSCROLL); + AddWindowStyles(); } wxObject *wxTextCtrlXmlHandler::DoCreateResource() { wxTextCtrl *text = new wxTextCtrl(m_ParentAsWindow, GetID(), - GetText(_T("value")), + GetText(wxT("value")), GetPosition(), GetSize(), GetStyle(), - wxDefaultValidator, - GetText(_T("name")) + wxDefaultValidator, + GetName() ); SetupWindow(text); @@ -51,7 +52,7 @@ wxObject *wxTextCtrlXmlHandler::DoCreateResource() bool wxTextCtrlXmlHandler::CanHandle(wxXmlNode *node) { - return node->GetName() == _T("textctrl"); + return IsOfClass(node, wxT("wxTextCtrl")); }