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:
@@ -141,6 +141,7 @@ void wxToolBarBase::OnRightClick(int toolIndex, long x, long y)
|
|||||||
{
|
{
|
||||||
wxCommandEvent event(wxEVT_COMMAND_TOOL_RCLICKED, toolIndex);
|
wxCommandEvent event(wxEVT_COMMAND_TOOL_RCLICKED, toolIndex);
|
||||||
event.SetEventObject(this);
|
event.SetEventObject(this);
|
||||||
|
event.SetInt(toolIndex);
|
||||||
|
|
||||||
GetEventHandler()->ProcessEvent(event);
|
GetEventHandler()->ProcessEvent(event);
|
||||||
}
|
}
|
||||||
@@ -151,6 +152,7 @@ void wxToolBarBase::OnMouseEnter ( int toolIndex )
|
|||||||
{
|
{
|
||||||
wxCommandEvent event(wxEVT_COMMAND_TOOL_ENTER, toolIndex);
|
wxCommandEvent event(wxEVT_COMMAND_TOOL_ENTER, toolIndex);
|
||||||
event.SetEventObject(this);
|
event.SetEventObject(this);
|
||||||
|
event.SetInt(toolIndex);
|
||||||
|
|
||||||
GetEventHandler()->ProcessEvent(event);
|
GetEventHandler()->ProcessEvent(event);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user