Don't return NULL widget from wxFileCtrl page of widgets sample.
This makes all the common operations such as setting tooltip, colours &c on this page simply crash. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71363 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -71,7 +71,7 @@ public:
|
|||||||
FileCtrlWidgetsPage( WidgetsBookCtrl *book, wxImageList *imaglist );
|
FileCtrlWidgetsPage( WidgetsBookCtrl *book, wxImageList *imaglist );
|
||||||
virtual ~FileCtrlWidgetsPage() {}
|
virtual ~FileCtrlWidgetsPage() {}
|
||||||
|
|
||||||
virtual wxControl *GetWidget() const { return /*m_fileCtrl*/NULL; }
|
virtual wxControl *GetWidget() const { return m_fileCtrl; }
|
||||||
virtual void RecreateWidget() { CreateFileCtrl(); }
|
virtual void RecreateWidget() { CreateFileCtrl(); }
|
||||||
|
|
||||||
// lazy creation of the content
|
// lazy creation of the content
|
||||||
|
Reference in New Issue
Block a user