]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/xml/xh_text.cpp
fixed typo
[wxWidgets.git] / contrib / src / xml / xh_text.cpp
index 8775d86cdfd4951c7467dfd42bf18064de93e92b..bdba8d57ccba3969a4775ad35ab3850fd4a6890f 100644 (file)
@@ -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,
+    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"));
 }