Inherit from wxNavigationEnabled<wxBookCtrlBase> instead of just
wxBookCtrlBase to ensure that the keyboard navigation works correctly for
these controls.
The toolbar in wxToolbook still doesn't accept focus from keyboard but at
least the pages can be TAB-bed too and from. And the rest of the controls
are now fully accessible using only the keyboard.
Closes #14303.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71435
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#include "wx/bookctrl.h"
#include "wx/choice.h"
#include "wx/bookctrl.h"
#include "wx/choice.h"
+#include "wx/containr.h"
class WXDLLIMPEXP_FWD_CORE wxChoice;
class WXDLLIMPEXP_FWD_CORE wxChoice;
// wxChoicebook
// ----------------------------------------------------------------------------
// wxChoicebook
// ----------------------------------------------------------------------------
-class WXDLLIMPEXP_CORE wxChoicebook : public wxBookCtrlBase
+class WXDLLIMPEXP_CORE wxChoicebook : public wxNavigationEnabled<wxBookCtrlBase>
{
public:
wxChoicebook() { }
{
public:
wxChoicebook() { }
#if wxUSE_LISTBOOK
#include "wx/bookctrl.h"
#if wxUSE_LISTBOOK
#include "wx/bookctrl.h"
+#include "wx/containr.h"
class WXDLLIMPEXP_FWD_CORE wxListView;
class WXDLLIMPEXP_FWD_CORE wxListEvent;
class WXDLLIMPEXP_FWD_CORE wxListView;
class WXDLLIMPEXP_FWD_CORE wxListEvent;
// wxListbook
// ----------------------------------------------------------------------------
// wxListbook
// ----------------------------------------------------------------------------
-class WXDLLIMPEXP_CORE wxListbook : public wxBookCtrlBase
+class WXDLLIMPEXP_CORE wxListbook : public wxNavigationEnabled<wxBookCtrlBase>
{
public:
wxListbook() { }
{
public:
wxListbook() { }
#if wxUSE_TOOLBOOK
#include "wx/bookctrl.h"
#if wxUSE_TOOLBOOK
#include "wx/bookctrl.h"
+#include "wx/containr.h"
class WXDLLIMPEXP_FWD_CORE wxToolBarBase;
class WXDLLIMPEXP_FWD_CORE wxCommandEvent;
class WXDLLIMPEXP_FWD_CORE wxToolBarBase;
class WXDLLIMPEXP_FWD_CORE wxCommandEvent;
// wxToolbook
// ----------------------------------------------------------------------------
// wxToolbook
// ----------------------------------------------------------------------------
-class WXDLLIMPEXP_CORE wxToolbook : public wxBookCtrlBase
+class WXDLLIMPEXP_CORE wxToolbook : public wxNavigationEnabled<wxBookCtrlBase>
#if wxUSE_TREEBOOK
#include "wx/bookctrl.h"
#if wxUSE_TREEBOOK
#include "wx/bookctrl.h"
+#include "wx/containr.h"
#include "wx/treectrl.h" // for wxArrayTreeItemIds
typedef wxWindow wxTreebookPage;
#include "wx/treectrl.h" // for wxArrayTreeItemIds
typedef wxWindow wxTreebookPage;
// wxTreebook
// ----------------------------------------------------------------------------
// wxTreebook
// ----------------------------------------------------------------------------
-class WXDLLIMPEXP_CORE wxTreebook : public wxBookCtrlBase
+class WXDLLIMPEXP_CORE wxTreebook : public wxNavigationEnabled<wxBookCtrlBase>
{
public:
// Constructors and such
{
public:
// Constructors and such