From 7a8092229fcfa64186db4969fcf0a034052d3c45 Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Tue, 30 Sep 2008 11:34:19 +0000 Subject: [PATCH] Make wxPGCanvas accept focus even with child windows git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55974 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/propgrid/propgrid.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/propgrid/propgrid.cpp b/src/propgrid/propgrid.cpp index c841b1e7f5..8ad70459c6 100644 --- a/src/propgrid/propgrid.cpp +++ b/src/propgrid/propgrid.cpp @@ -422,6 +422,11 @@ protected: void OnPaint( wxPaintEvent& event ); + // Always be focussable, even with child windows + virtual void SetCanFocus(bool WXUNUSED(canFocus)) + { wxPanel::SetCanFocus(true); } + + private: DECLARE_EVENT_TABLE() DECLARE_ABSTRACT_CLASS(wxPGCanvas) -- 2.45.2