void HeeksRibbon::OnExternalBarButton(wxRibbonButtonBarEvent& event) { RibbonButtonData* data = GetRibbonButtonData(event.GetId()); if (data) { (*(data->m_on_button))(event); event.Skip(); } }
void OnRibbonButtonClick(wxRibbonButtonBarEvent& evt) { evt.SetEventType(wxEVT_COMMAND_BUTTON_CLICKED); evt.Skip(); }
void OnRibbonButtonDropdown(wxRibbonButtonBarEvent& evt) { evt.SetEventType(AppData::current().evt_user_dropdown_menu); AppData::current().popup_dropdown_menu.bind(&ICtl_ribbon_buttonbar::EvtPopupMenu, _1, _2, &evt); evt.Skip(); }