X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4c51a665c649f7579fb39e62070cef4f66b3210d..8e77fd8bca165aab9709649d79a7cbc6a172d4e1:/include/wx/statbox.h?ds=inline 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