mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-09-26 01:28:38 +08:00
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:
@@ -70,7 +70,7 @@ public:
|
||||
SearchCtrlWidgetsPage(WidgetsBookCtrl *book, wxImageList *imaglist);
|
||||
virtual ~SearchCtrlWidgetsPage(){};
|
||||
|
||||
virtual wxControl *GetWidget() const wxOVERRIDE { return m_srchCtrl; }
|
||||
virtual wxWindow *GetWidget() const wxOVERRIDE { return m_srchCtrl; }
|
||||
virtual wxTextEntryBase *GetTextEntry() const wxOVERRIDE { return m_srchCtrl; }
|
||||
virtual void RecreateWidget() wxOVERRIDE;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user