Use wxWindow instead of wxControl in the widgets sample.

Not all widgets are controls and we don't use any of wxControl-specific
methods in the sample, so don't require RecreateWidget() to return a wxControl
when a simple wxWindow suffices.

No real changes.
This commit is contained in:
Vadim Zeitlin
2015-07-31 17:53:55 +02:00
parent 2509e7927a
commit ce95913319
29 changed files with 30 additions and 30 deletions

View File

@@ -67,7 +67,7 @@ public:
DirPickerWidgetsPage(WidgetsBookCtrl *book, wxImageList *imaglist);
virtual ~DirPickerWidgetsPage(){};
virtual wxControl *GetWidget() const wxOVERRIDE { return m_dirPicker; }
virtual wxWindow *GetWidget() const wxOVERRIDE { return m_dirPicker; }
virtual void RecreateWidget() wxOVERRIDE { RecreatePicker(); }
// lazy creation of the content