]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/widgets/gauge.cpp
bakefile-generated makefiles for the sample
[wxWidgets.git] / samples / widgets / gauge.cpp
index 743592a7ba196328050239f189a61a7c15c685ee..5b950ee073286c4cac7932ff9811ce5f42b7535f 100644 (file)
@@ -75,6 +75,7 @@ public:
     virtual ~GaugeWidgetsPage();
 
     virtual wxControl *GetWidget() const { return m_gauge; }
+    virtual void RecreateWidget() { CreateGauge(); }
 
 protected:
     // event handlers
@@ -259,7 +260,7 @@ void GaugeWidgetsPage::Reset()
 
 void GaugeWidgetsPage::CreateGauge()
 {
-    int flags = 0;
+    int flags = ms_defaultFlags;
 
     if ( m_chkVert->GetValue() )
         flags |= wxGA_VERTICAL;