]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/xml/xh_radbt.cpp
Moved wxApplet files to the correct locations.
[wxWidgets.git] / contrib / src / xml / xh_radbt.cpp
index bdcbfe59251d3cfb15500c600d848f18a4814829..2c3bc840be8b3ebd1a99256329f113ae1d20d739 100644 (file)
@@ -28,6 +28,7 @@ wxRadioButtonXmlHandler::wxRadioButtonXmlHandler()
 : wxXmlResourceHandler() 
 {
     ADD_STYLE( wxRB_GROUP );
+    AddWindowStyles();
 }
 
 wxObject *wxRadioButtonXmlHandler::DoCreateResource()
@@ -39,16 +40,16 @@ wxObject *wxRadioButtonXmlHandler::DoCreateResource()
      * normal radio button.
      */ 
 
-    wxRadioButton *control = new wxRadioButton(m_ParentAsWindow,
+    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"));
 }