X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/56d2f75071fc2a29ec10abe97c5a908bb35f30f4..8173fefe0a9d61cfe5244a301044aa2269bc1c31:/contrib/src/xml/xh_sttxt.cpp diff --git a/contrib/src/xml/xh_sttxt.cpp b/contrib/src/xml/xh_sttxt.cpp index f0e59c094f..bfecff2584 100644 --- a/contrib/src/xml/xh_sttxt.cpp +++ b/contrib/src/xml/xh_sttxt.cpp @@ -26,13 +26,14 @@ wxStaticTextXmlHandler::wxStaticTextXmlHandler() : wxXmlResourceHandler() { ADD_STYLE( wxST_NO_AUTORESIZE ); + AddWindowStyles(); } wxObject *wxStaticTextXmlHandler::DoCreateResource() { - wxStaticText *text = new wxStaticText(m_ParentAsWindow, + wxStaticText *text = new wxStaticText(m_parentAsWindow, GetID(), - GetText(_T("label")), + GetText(wxT("label")), GetPosition(), GetSize(), GetStyle(), GetName() @@ -46,7 +47,7 @@ wxObject *wxStaticTextXmlHandler::DoCreateResource() bool wxStaticTextXmlHandler::CanHandle(wxXmlNode *node) { - return node->GetName() == _T("statictext"); + return IsOfClass(node, wxT("wxStaticText")); }