]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xrc/xh_radbt.cpp
remove the selection when SetSelection(-1) is called instead of asserting (as documented)
[wxWidgets.git] / src / xrc / xh_radbt.cpp
index e615ef9365815200a01667208703d1dbe90d6690..0b84a58d9664bb487646e3bf89fd688f0529bfa7 100644 (file)
@@ -19,7 +19,7 @@
     #pragma hdrstop
 #endif
 
-#if wxUSE_XRC && wxUSE_RADIOBOX
+#if wxUSE_XRC && wxUSE_RADIOBTN
 
 #include "wx/xrc/xh_radbt.h"
 #include "wx/radiobut.h"
@@ -30,6 +30,7 @@ wxRadioButtonXmlHandler::wxRadioButtonXmlHandler()
 : wxXmlResourceHandler()
 {
     XRC_ADD_STYLE(wxRB_GROUP);
+    XRC_ADD_STYLE(wxRB_SINGLE);
     AddWindowStyles();
 }
 
@@ -63,4 +64,4 @@ bool wxRadioButtonXmlHandler::CanHandle(wxXmlNode *node)
     return IsOfClass(node, wxT("wxRadioButton"));
 }
 
-#endif // wxUSE_XRC && wxUSE_NOTEBOOK
+#endif // wxUSE_XRC && wxUSE_RADIOBTN