From: Julian Smart Date: Fri, 24 Jul 1998 15:47:22 +0000 (+0000) Subject: New toolbar event processing X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/0f217db31814dde7432ceb2e00ddf42b968b9fa3 New toolbar event processing git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@356 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/tbarbase.cpp b/src/common/tbarbase.cpp index b7322ac3f9..cf70cbf42d 100644 --- a/src/common/tbarbase.cpp +++ b/src/common/tbarbase.cpp @@ -141,6 +141,7 @@ void wxToolBarBase::OnRightClick(int toolIndex, long x, long y) { wxCommandEvent event(wxEVT_COMMAND_TOOL_RCLICKED, toolIndex); event.SetEventObject(this); + event.SetInt(toolIndex); GetEventHandler()->ProcessEvent(event); } @@ -151,6 +152,7 @@ void wxToolBarBase::OnMouseEnter ( int toolIndex ) { wxCommandEvent event(wxEVT_COMMAND_TOOL_ENTER, toolIndex); event.SetEventObject(this); + event.SetInt(toolIndex); GetEventHandler()->ProcessEvent(event); }