]> git.saurik.com Git - wxWidgets.git/commitdiff
New toolbar event processing
authorJulian Smart <julian@anthemion.co.uk>
Fri, 24 Jul 1998 15:47:22 +0000 (15:47 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Fri, 24 Jul 1998 15:47:22 +0000 (15:47 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@356 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/tbarbase.cpp

index b7322ac3f9d599f43504da8249263c3f5e9c462a..cf70cbf42dadd7f05300ca24430201a270bab60c 100644 (file)
@@ -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);
 }