From 6b81fbd8dea675793b4216b47677373d46a56a92 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 25 Mar 2007 23:00:36 +0000 Subject: [PATCH] do accept focus in notebook as it needs it for tabs git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45058 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/notebook.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/wx/notebook.h b/include/wx/notebook.h index d6b68457f0..f94e516227 100644 --- a/include/wx/notebook.h +++ b/include/wx/notebook.h @@ -106,6 +106,9 @@ public: // new is -1) void SendPageChangedEvent(int nPageOld, int nPageNew = -1); + // wxBookCtrlBase overrides this method to return false but we do need + // focus because we have tabs + virtual bool AcceptsFocus() const { return wxControl::AcceptsFocus(); } protected: DECLARE_NO_COPY_CLASS(wxNotebookBase) -- 2.50.0