From: Jaakko Salli Date: Tue, 30 Sep 2008 16:46:36 +0000 (+0000) Subject: Fix Connect() calls in SetupChildEventHandling() X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/6d24f9a93935fd80cf1c5155e480e1d852ad8ca1 Fix Connect() calls in SetupChildEventHandling() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55985 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/propgrid/propgrid.cpp b/src/propgrid/propgrid.cpp index c96523b261..d33e9eec99 100644 --- a/src/propgrid/propgrid.cpp +++ b/src/propgrid/propgrid.cpp @@ -3409,31 +3409,40 @@ void wxPropertyGrid::SetupChildEventHandling( wxWindow* argWnd ) if ( argWnd == m_wndEditor ) { - this->Connect(id, wxEVT_MOTION, - wxMouseEventHandler(wxPropertyGrid::OnMouseMoveChild)); - this->Connect(id, wxEVT_LEFT_UP, - wxMouseEventHandler(wxPropertyGrid::OnMouseUpChild)); - this->Connect(id, wxEVT_LEFT_DOWN, - wxMouseEventHandler(wxPropertyGrid::OnMouseClickChild)); - this->Connect(id, wxEVT_RIGHT_UP, - wxMouseEventHandler(wxPropertyGrid::OnMouseRightClickChild)); - this->Connect(id, wxEVT_ENTER_WINDOW, - wxMouseEventHandler(wxPropertyGrid::OnMouseEntry)); - this->Connect(id, wxEVT_LEAVE_WINDOW, - wxMouseEventHandler(wxPropertyGrid::OnMouseEntry)); + argWnd->Connect(id, wxEVT_MOTION, + wxMouseEventHandler(wxPropertyGrid::OnMouseMoveChild), + NULL, this); + argWnd->Connect(id, wxEVT_LEFT_UP, + wxMouseEventHandler(wxPropertyGrid::OnMouseUpChild), + NULL, this); + argWnd->Connect(id, wxEVT_LEFT_DOWN, + wxMouseEventHandler(wxPropertyGrid::OnMouseClickChild), + NULL, this); + argWnd->Connect(id, wxEVT_RIGHT_UP, + wxMouseEventHandler(wxPropertyGrid::OnMouseRightClickChild), + NULL, this); + argWnd->Connect(id, wxEVT_ENTER_WINDOW, + wxMouseEventHandler(wxPropertyGrid::OnMouseEntry), + NULL, this); + argWnd->Connect(id, wxEVT_LEAVE_WINDOW, + wxMouseEventHandler(wxPropertyGrid::OnMouseEntry), + NULL, this); } else { - this->Connect(id, wxEVT_NAVIGATION_KEY, + argWnd->Connect(id, wxEVT_NAVIGATION_KEY, wxNavigationKeyEventHandler(wxPropertyGrid::OnNavigationKey)); } - this->Connect(id, wxEVT_KEY_DOWN, - wxKeyEventHandler(wxPropertyGrid::OnChildKeyDown)); - this->Connect(id, wxEVT_KEY_UP, - wxKeyEventHandler(wxPropertyGrid::OnChildKeyUp)); - this->Connect(id, wxEVT_KILL_FOCUS, - wxFocusEventHandler(wxPropertyGrid::OnFocusEvent)); + argWnd->Connect(id, wxEVT_KEY_DOWN, + wxKeyEventHandler(wxPropertyGrid::OnChildKeyDown), + NULL, this); + argWnd->Connect(id, wxEVT_KEY_UP, + wxKeyEventHandler(wxPropertyGrid::OnChildKeyUp), + NULL, this); + argWnd->Connect(id, wxEVT_KILL_FOCUS, + wxFocusEventHandler(wxPropertyGrid::OnFocusEvent), + NULL, this); } void wxPropertyGrid::FreeEditors()