示例#1
0
void HeeksRibbon::OnBarButtonDropDown(wxRibbonButtonBarEvent& event)
{
	RibbonButtonData* data = GetRibbonButtonData(event.GetId());

	if (data && data->m_on_dropdown)
	{
		(*(data->m_on_dropdown))(event);
	}
}
示例#2
0
void HeeksRibbon::OnExternalBarButton(wxRibbonButtonBarEvent& event)
{
	RibbonButtonData* data = GetRibbonButtonData(event.GetId());
	if (data)
	{
		(*(data->m_on_button))(event);
		event.Skip();
	}
}