From: Robert Roebling Date: Tue, 30 Sep 2008 11:34:19 +0000 (+0000) Subject: Make wxPGCanvas accept focus even with child windows X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/7a8092229fcfa64186db4969fcf0a034052d3c45?ds=inline 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 --- 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)