New toolbar event processing

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@356 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart 1998-07-24 15:47:22 +00:00
parent 6a23cbcede
commit 0f217db318

View 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);
}