]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/xml/xh_text.cpp
added 'name' to wxEditableListBox ctor
[wxWidgets.git] / contrib / src / xml / xh_text.cpp
index a1203536b3f6fd236f8d8b91522c99526fc0a977..bdba8d57ccba3969a4775ad35ab3850fd4a6890f 100644 (file)
@@ -35,13 +35,13 @@ wxTextCtrlXmlHandler::wxTextCtrlXmlHandler() : wxXmlResourceHandler()
 
 wxObject *wxTextCtrlXmlHandler::DoCreateResource()
 { 
-    wxTextCtrl *text = new wxTextCtrl(m_ParentAsWindow,
+    wxTextCtrl *text = new wxTextCtrl(m_parentAsWindow,
                                     GetID(),
-                                    GetText(_T("value")),
+                                    GetText(wxT("value")),
                                     GetPosition(), GetSize(),
                                     GetStyle(),
-                                                                       wxDefaultValidator,
-                                    GetText(_T("name"))
+                                    wxDefaultValidator,
+                                    GetName()
                                     );
     SetupWindow(text);
     
@@ -52,7 +52,7 @@ wxObject *wxTextCtrlXmlHandler::DoCreateResource()
 
 bool wxTextCtrlXmlHandler::CanHandle(wxXmlNode *node)
 {
-    return node->GetName() == _T("textctrl");
+    return IsOfClass(node, wxT("wxTextCtrl"));
 }