예제 #1
0
void HeeksRibbon::OnExternalBarButton(wxRibbonButtonBarEvent& event)
{
	RibbonButtonData* data = GetRibbonButtonData(event.GetId());
	if (data)
	{
		(*(data->m_on_button))(event);
		event.Skip();
	}
}
예제 #2
0
	void OnRibbonButtonClick(wxRibbonButtonBarEvent& evt)
	{
		evt.SetEventType(wxEVT_COMMAND_BUTTON_CLICKED);
		evt.Skip();
	}
예제 #3
0
	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();
	}