X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9aa727fa7d79b16588389a997602cc78a427a4b8..cda5c26a4842a74636022aad5493c080f96d6ae5:/src/generic/buttonbar.cpp diff --git a/src/generic/buttonbar.cpp b/src/generic/buttonbar.cpp index 82d43dc554..c9e1f5f5d0 100644 --- a/src/generic/buttonbar.cpp +++ b/src/generic/buttonbar.cpp @@ -550,7 +550,7 @@ void wxButtonToolBar::OnLeftUp(wxMouseEvent& event) wxButtonToolBarTool* tool = (wxButtonToolBarTool*) FindToolForPosition(event.GetX(), event.GetY()); if (tool && tool->GetButton() && (event.GetY() > (tool->m_y + tool->GetButton()->GetSize().y))) { - wxCommandEvent event(wxEVT_COMMAND_BUTTON_CLICKED, tool->GetId()); + wxCommandEvent event(wxEVT_BUTTON, tool->GetId()); event.SetEventObject(tool->GetButton()); if (!GetEventHandler()->ProcessEvent(event)) event.Skip();