X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/195df7a7672277af495a4ecf9bf6eee2a7517069..f5058cd7d926d45a6b0673a0b557ca0792f60e48:/samples/widgets/gauge.cpp diff --git a/samples/widgets/gauge.cpp b/samples/widgets/gauge.cpp index 54610ac03b..5b950ee073 100644 --- a/samples/widgets/gauge.cpp +++ b/samples/widgets/gauge.cpp @@ -71,10 +71,11 @@ enum class GaugeWidgetsPage : public WidgetsPage { public: - GaugeWidgetsPage(wxNotebook *notebook, wxImageList *imaglist); + GaugeWidgetsPage(wxBookCtrlBase *book, wxImageList *imaglist); virtual ~GaugeWidgetsPage(); virtual wxControl *GetWidget() const { return m_gauge; } + virtual void RecreateWidget() { CreateGauge(); } protected: // event handlers @@ -158,9 +159,9 @@ END_EVENT_TABLE() IMPLEMENT_WIDGETS_PAGE(GaugeWidgetsPage, _T("Gauge")); -GaugeWidgetsPage::GaugeWidgetsPage(wxNotebook *notebook, - wxImageList *imaglist) - : WidgetsPage(notebook) +GaugeWidgetsPage::GaugeWidgetsPage(wxBookCtrlBase *book, + wxImageList *imaglist) + :WidgetsPage(book) { imaglist->Add(wxBitmap(gauge_xpm)); @@ -259,7 +260,7 @@ void GaugeWidgetsPage::Reset() void GaugeWidgetsPage::CreateGauge() { - int flags = 0; + int flags = ms_defaultFlags; if ( m_chkVert->GetValue() ) flags |= wxGA_VERTICAL;