]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/xml/xh_sttxt.cpp
fixed typo
[wxWidgets.git] / contrib / src / xml / xh_sttxt.cpp
index f0e59c094fe62433c691fd9e213d5ad40a459d06..bfecff25845ccd22337ad6672a72ce79807b4d1a 100644 (file)
@@ -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"));
 }