X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4c51a665c649f7579fb39e62070cef4f66b3210d..d642db66a5efc82d374b813022c72ba88bc50839:/include/wx/statbox.h diff --git a/include/wx/statbox.h b/include/wx/statbox.h index cacae66198..e1ea580b4b 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() { } + wxStaticBoxBase() { m_container.DisableSelfFocus(); } // 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