]> git.saurik.com Git - wxWidgets.git/commitdiff
Make it possible to TAB to wxTreeListCtrl contents.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 29 Aug 2011 14:46:56 +0000 (14:46 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 29 Aug 2011 14:46:56 +0000 (14:46 +0000)
Even though wxTreeListCtrl contains just one child window it still needs to
derive from wxNavigationEnabled<> to allow focus getting to its sole child.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68950 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/treelist.h

index 1016e262c1a659848342d67f0df80ae4a349fd5c..dee836d209be6ff74ee75b7552962dc7a2e12faa 100644 (file)
@@ -15,6 +15,7 @@
 
 #if wxUSE_TREELISTCTRL
 
+#include "wx/containr.h"
 #include "wx/headercol.h"
 #include "wx/itemid.h"
 #include "wx/vector.h"
@@ -87,7 +88,7 @@ extern WXDLLIMPEXP_DATA_ADV(const wxTreeListItem) wxTLI_LAST;
 // with wxDataViewCtrl directly but doing this makes your unportable to possible
 // future non-wxDataViewCtrl-based implementations of this class.
 
-class WXDLLIMPEXP_ADV wxTreeListCtrl : public wxWindow,
+class WXDLLIMPEXP_ADV wxTreeListCtrl : public wxNavigationEnabled<wxWindow>,
                                        public wxWithImages
 {
 public: