From 47e388caa6495318301fbb41cb8e3e0a80ff5da4 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 17 Dec 2004 01:41:47 +0000 Subject: [PATCH] accept focus in radiobox again (broken by making it derive from static box which doesn't accept it) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31040 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/msw/radiobox.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/wx/msw/radiobox.h b/include/wx/msw/radiobox.h index 64d4d542ca..89673b211f 100644 --- a/include/wx/msw/radiobox.h +++ b/include/wx/msw/radiobox.h @@ -104,6 +104,9 @@ public: virtual bool SetFont(const wxFont& font); virtual bool ContainsHWND(WXHWND hWnd) const; + // we inherit a version returning false from wxStaticBox, override it again + virtual bool AcceptsFocus() const { return true; } + void SetLabelFont(const wxFont& WXUNUSED(font)) {} void SetButtonFont(const wxFont& font) { SetFont(font); }