X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/efb349e4f321856db92535f05d92ac7e24d49124..c1bf3a3e90edc2ad50446c5d8891af17bb188ebf:/samples/widgets/gauge.cpp diff --git a/samples/widgets/gauge.cpp b/samples/widgets/gauge.cpp index d887d13754..743592a7ba 100644 --- a/samples/widgets/gauge.cpp +++ b/samples/widgets/gauge.cpp @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Program: wxWindows Widgets Sample +// Program: wxWidgets Widgets Sample // Name: gauge.cpp // Purpose: Part of the widgets sample showing wxGauge // Author: Vadim Zeitlin @@ -71,9 +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; } + protected: // event handlers void OnButtonReset(wxCommandEvent& event); @@ -156,9 +158,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));