]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/xml/xh_sttxt.cpp
removed libxpm dependencies from makefiles
[wxWidgets.git] / contrib / src / xml / xh_sttxt.cpp
index d4e4ff24f641ebc03dc06beb0d46f2173fabbbca..bfecff25845ccd22337ad6672a72ce79807b4d1a 100644 (file)
@@ -31,9 +31,9 @@ wxStaticTextXmlHandler::wxStaticTextXmlHandler()
 
 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()
@@ -47,7 +47,7 @@ wxObject *wxStaticTextXmlHandler::DoCreateResource()
 
 bool wxStaticTextXmlHandler::CanHandle(wxXmlNode *node)
 {
-    return node->GetName() == _T("statictext");
+    return IsOfClass(node, wxT("wxStaticText"));
 }