X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9df70d797b1c2b5913cc8628ca00b97d7bfeb23f..51248412979029d94d11ea5dab9516831be94914:/src/common/tbarbase.cpp diff --git a/src/common/tbarbase.cpp b/src/common/tbarbase.cpp index 2a33c1979b..b20130ec33 100644 --- a/src/common/tbarbase.cpp +++ b/src/common/tbarbase.cpp @@ -631,7 +631,7 @@ bool wxToolBarBase::IsVertical() const // Only allow toggle if returns true bool wxToolBarBase::OnLeftClick(int toolid, bool toggleDown) { - wxCommandEvent event(wxEVT_COMMAND_TOOL_CLICKED, toolid); + wxCommandEvent event(wxEVT_TOOL, toolid); event.SetEventObject(this); // we use SetInt() to make wxCommandEvent::IsChecked() return toggleDown @@ -651,7 +651,7 @@ void wxToolBarBase::OnRightClick(int toolid, long WXUNUSED(x), long WXUNUSED(y)) { - wxCommandEvent event(wxEVT_COMMAND_TOOL_RCLICKED, toolid); + wxCommandEvent event(wxEVT_TOOL_RCLICKED, toolid); event.SetEventObject(this); event.SetInt(toolid); @@ -665,7 +665,7 @@ void wxToolBarBase::OnRightClick(int toolid, // the tool toolid. void wxToolBarBase::OnMouseEnter(int toolid) { - wxCommandEvent event(wxEVT_COMMAND_TOOL_ENTER, GetId()); + wxCommandEvent event(wxEVT_TOOL_ENTER, GetId()); event.SetEventObject(this); event.SetInt(toolid);