From e9b379fe2abb579fc1c334cc3e642e66c0a5d158 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 25 Oct 2015 18:13:59 +0100 Subject: [PATCH] Fix TAB navigation inside wxStaticBox in wxOSX Derive wxStaticBox from wxStaticBoxBase for consistency with the other ports and to make it derive from wxNavigationEnabled<>, which is necessary for TAB navigation to work. Closes #3842. --- include/wx/osx/statbox.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/include/wx/osx/statbox.h b/include/wx/osx/statbox.h index 5ab7ad670f..c7a02c6bc2 100644 --- a/include/wx/osx/statbox.h +++ b/include/wx/osx/statbox.h @@ -11,10 +11,7 @@ #ifndef _WX_STATBOX_H_ #define _WX_STATBOX_H_ -#include "wx/control.h" - -// Group box -class WXDLLIMPEXP_CORE wxStaticBox: public wxControl +class WXDLLIMPEXP_CORE wxStaticBox : public wxStaticBoxBase { wxDECLARE_DYNAMIC_CLASS(wxStaticBox);