]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/widgets/button.cpp
Don't cast with G_OBJECT when passing a GObject to g_object_ref, g_object_unref and...
[wxWidgets.git] / samples / widgets / button.cpp
index 4023441785eb725ffb7629ecad3c4db3a8dcc73e..8e855553a3d63589cc334085d649d9f55f81403c 100644 (file)
@@ -83,6 +83,7 @@ public:
     virtual ~ButtonWidgetsPage(){};
 
     virtual wxControl *GetWidget() const { return m_button; }
+    virtual void RecreateWidget() { CreateButton(); }
 
 protected:
     // event handlers
@@ -311,7 +312,7 @@ void ButtonWidgetsPage::CreateButton()
         label = m_textLabel->GetValue();
     }
 
-    int flags = 0;
+    int flags = ms_defaultFlags;
     switch ( m_radioHAlign->GetSelection() )
     {
         case ButtonHAlign_Left: