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:
@@ -90,7 +90,7 @@ class ODComboboxWidgetsPage : public ItemContainerWidgetsPage
|
||||
public:
|
||||
ODComboboxWidgetsPage(WidgetsBookCtrl *book, wxImageList *imaglist);
|
||||
|
||||
virtual wxControl *GetWidget() const wxOVERRIDE { return m_combobox; }
|
||||
virtual wxWindow *GetWidget() const wxOVERRIDE { return m_combobox; }
|
||||
virtual wxTextEntryBase *GetTextEntry() const wxOVERRIDE
|
||||
{ return m_combobox ? m_combobox->GetTextCtrl() : NULL; }
|
||||
virtual wxItemContainer* GetContainer() const wxOVERRIDE { return m_combobox; }
|
||||
|
Reference in New Issue
Block a user