]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/xml/xh_chckb.cpp
fixed typo
[wxWidgets.git] / contrib / src / xml / xh_chckb.cpp
index d2d3c15f1abec5a1797c483f15c202e52ee3fcf9..c675c6663ee10d863a615f61a11a3bfcbe45b7f9 100644 (file)
 wxCheckBoxXmlHandler::wxCheckBoxXmlHandler() 
 : wxXmlResourceHandler() 
 {
 wxCheckBoxXmlHandler::wxCheckBoxXmlHandler() 
 : wxXmlResourceHandler() 
 {
+    AddWindowStyles();
 }
 
 wxObject *wxCheckBoxXmlHandler::DoCreateResource()
 { 
 }
 
 wxObject *wxCheckBoxXmlHandler::DoCreateResource()
 { 
-    wxCheckBox *control = new wxCheckBox(m_ParentAsWindow,
+    wxCheckBox *control = new wxCheckBox(m_parentAsWindow,
                                     GetID(),
                                     GetID(),
-                                    GetText(_T("label")),
+                                    GetText(wxT("label")),
                                     GetPosition(), GetSize(),
                                     GetStyle(),
                                     wxDefaultValidator,
                                     GetName()
                                     );
 
                                     GetPosition(), GetSize(),
                                     GetStyle(),
                                     wxDefaultValidator,
                                     GetName()
                                     );
 
-    control->SetValue( GetBool( _T("checked")));
+    control->SetValue( GetBool( wxT("checked")));
     SetupWindow(control);
     
     return control;
     SetupWindow(control);
     
     return control;
@@ -50,7 +51,7 @@ wxObject *wxCheckBoxXmlHandler::DoCreateResource()
 
 bool wxCheckBoxXmlHandler::CanHandle(wxXmlNode *node)
 {
 
 bool wxCheckBoxXmlHandler::CanHandle(wxXmlNode *node)
 {
-    return node->GetName() == _T("checkbox");
+    return IsOfClass(node, wxT("wxCheckBox"));
 }
 
 #endif
 }
 
 #endif