]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/buttonbar.cpp
missing commit
[wxWidgets.git] / src / generic / buttonbar.cpp
index 82d43dc554806963208821fee3c18c58799c2b02..c9e1f5f5d04a45956b69459b854320b41ae0e874 100644 (file)
@@ -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();