]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/widgets/radiobox.cpp
Don't cast with G_OBJECT when passing a GObject to g_object_ref, g_object_unref and...
[wxWidgets.git] / samples / widgets / radiobox.cpp
index ddb845608486bfd1679d0b07acd59639426310a2..91f5cc9fa9e38b256105ad99c258c73380c51e43 100644 (file)
@@ -87,6 +87,7 @@ public:
     virtual ~RadioWidgetsPage(){};
 
     virtual wxControl *GetWidget() const { return m_radio; }
+    virtual void RecreateWidget() { CreateRadio(); }
 
 protected:
     // event handlers
@@ -356,6 +357,8 @@ void RadioWidgetsPage::CreateRadio()
     int flags = m_chkVert->GetValue() ? wxRA_VERTICAL
                                       : wxRA_HORIZONTAL;
 
+    flags |= ms_defaultFlags;
+
 #ifdef wxRA_LEFTTORIGHT
     switch ( m_radioDir->GetSelection() )
     {