X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9a83f860948059b0273b5cc6d9e43fadad3ebfca..c6aabd1ca9a5590d5dd8e89d83a5fba74c69c931:/samples/widgets/spinbtn.cpp diff --git a/samples/widgets/spinbtn.cpp b/samples/widgets/spinbtn.cpp index 347b1039c1..c5b506f504 100644 --- a/samples/widgets/spinbtn.cpp +++ b/samples/widgets/spinbtn.cpp @@ -86,8 +86,14 @@ public: virtual ~SpinBtnWidgetsPage(){}; virtual wxControl *GetWidget() const { return m_spinbtn; } - virtual wxControl *GetWidget2() const { return m_spinctrl; } - virtual wxControl *GetWidget3() const { return m_spinctrldbl; } + virtual Widgets GetWidgets() const + { + Widgets widgets(WidgetsPage::GetWidgets()); + widgets.push_back(m_spinctrl); + widgets.push_back(m_spinctrldbl); + return widgets; + } + virtual void RecreateWidget() { CreateSpin(); } // lazy creation of the content