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:
@@ -83,7 +83,7 @@ enum
|
||||
ALL_CTRLS = 1 << ALL_PAGE
|
||||
};
|
||||
|
||||
typedef wxVector<wxControl *> Widgets;
|
||||
typedef wxVector<wxWindow *> Widgets;
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// WidgetsPage: a book page demonstrating some widget
|
||||
@@ -131,7 +131,7 @@ public:
|
||||
const char *const icon[]);
|
||||
|
||||
// return the control shown by this page
|
||||
virtual wxControl *GetWidget() const = 0;
|
||||
virtual wxWindow *GetWidget() const = 0;
|
||||
|
||||
// return the control shown by this page, if it supports text entry interface
|
||||
virtual wxTextEntryBase *GetTextEntry() const { return NULL; }
|
||||
|
Reference in New Issue
Block a user