]> git.saurik.com Git - wxWidgets.git/commitdiff
Make wxPGCanvas accept focus even with child windows
authorRobert Roebling <robert@roebling.de>
Tue, 30 Sep 2008 11:34:19 +0000 (11:34 +0000)
committerRobert Roebling <robert@roebling.de>
Tue, 30 Sep 2008 11:34:19 +0000 (11:34 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55974 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/propgrid/propgrid.cpp

index c841b1e7f511fadcead7c61493ad1bc983543274..8ad70459c6ac6523305efbc39e7decdc724ef1c9 100644 (file)
@@ -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)