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:
@@ -138,7 +138,7 @@ public:
|
||||
TextWidgetsPage(WidgetsBookCtrl *book, wxImageList *imaglist);
|
||||
virtual ~TextWidgetsPage(){};
|
||||
|
||||
virtual wxControl *GetWidget() const wxOVERRIDE { return m_text; }
|
||||
virtual wxWindow *GetWidget() const wxOVERRIDE { return m_text; }
|
||||
virtual wxTextEntryBase *GetTextEntry() const wxOVERRIDE { return m_text; }
|
||||
virtual void RecreateWidget() wxOVERRIDE { CreateText(); }
|
||||
|
||||
|
Reference in New Issue
Block a user