X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5378558e5ca2de455ba9749cc8a3044c6a93d1eb..f5058cd7d926d45a6b0673a0b557ca0792f60e48:/samples/widgets/gauge.cpp?ds=sidebyside diff --git a/samples/widgets/gauge.cpp b/samples/widgets/gauge.cpp index 743592a7ba..5b950ee073 100644 --- a/samples/widgets/gauge.cpp +++ b/samples/widgets/gauge.cpp @@ -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;