]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/xml/xh_radbt.cpp
1) some cleanup in wxHtmlWindow, moved private structures out of headers
[wxWidgets.git] / contrib / src / xml / xh_radbt.cpp
index bdcbfe59251d3cfb15500c600d848f18a4814829..4be009e0a9525df459416b4b17f1ffa844da2d00 100644 (file)
@@ -28,6 +28,7 @@ wxRadioButtonXmlHandler::wxRadioButtonXmlHandler()
 : wxXmlResourceHandler() 
 {
     ADD_STYLE( wxRB_GROUP );
+    AddWindowStyles();
 }
 
 wxObject *wxRadioButtonXmlHandler::DoCreateResource()
@@ -41,14 +42,14 @@ wxObject *wxRadioButtonXmlHandler::DoCreateResource()
 
     wxRadioButton *control = new wxRadioButton(m_ParentAsWindow,
                                     GetID(),
-                                    GetText(_T("label")),
+                                    GetText(wxT("label")),
                                     GetPosition(), GetSize(),
                                     GetStyle(),
                                     wxDefaultValidator,
                                     GetName()
                                     );
 
-    control->SetValue( GetBool(_T("value"), 0));
+    control->SetValue( GetBool(wxT("value"), 0));
     SetupWindow(control);
     
     return control;
@@ -58,7 +59,7 @@ wxObject *wxRadioButtonXmlHandler::DoCreateResource()
 
 bool wxRadioButtonXmlHandler::CanHandle(wxXmlNode *node)
 {
-    return node->GetName() == _T("radiobutton");
+    return IsOfClass(node, wxT("wxRadioButton"));
 }