From: Vadim Zeitlin Date: Thu, 20 Sep 2012 16:00:07 +0000 (+0000) Subject: Make it possible to TAB-navigate among wxStaticBox children. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/9b14c706b2e0d6a0c2786de1a890b871e33394eb Make it possible to TAB-navigate among wxStaticBox children. As wxStaticBox can now contain child windows, derive it from wxNavigationEnabled<> to allow TAB-navigating among them. Without this, it was impossible to switch focus from keyboard to any of the controls inside wxStaticBox. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72523 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/statbox.h b/include/wx/statbox.h index cacae66198..41aae1166a 100644 --- a/include/wx/statbox.h +++ b/include/wx/statbox.h @@ -17,6 +17,7 @@ #if wxUSE_STATBOX #include "wx/control.h" +#include "wx/containr.h" extern WXDLLIMPEXP_DATA_CORE(const char) wxStaticBoxNameStr[]; @@ -24,13 +25,12 @@ extern WXDLLIMPEXP_DATA_CORE(const char) wxStaticBoxNameStr[]; // wxStaticBox: a grouping box with a label // ---------------------------------------------------------------------------- -class WXDLLIMPEXP_CORE wxStaticBoxBase : public wxControl +class WXDLLIMPEXP_CORE wxStaticBoxBase : public wxNavigationEnabled { public: wxStaticBoxBase() { } // overridden base class virtuals - virtual bool AcceptsFocus() const { return false; } virtual bool HasTransparentBackground() { return true; } // implementation only: this is used by wxStaticBoxSizer to account for the