void MyFrame::OnPositionLeftDropdown(wxRibbonToolBarEvent& evt) { wxMenu menu; menu.Append(ID_POSITION_LEFT, wxT("Left with Icons")); menu.Append(ID_POSITION_LEFT_LABELS, wxT("Left with Labels")); menu.Append(ID_POSITION_LEFT_BOTH, wxT("Left with Both")); evt.PopupMenu(&menu); }
void MyFrame::OnPositionTopDropdown(wxRibbonToolBarEvent& evt) { wxMenu menu; menu.Append(ID_POSITION_TOP, wxT("Top with Labels")); menu.Append(ID_POSITION_TOP_ICONS, wxT("Top with Icons")); menu.Append(ID_POSITION_TOP_BOTH, wxT("Top with Both")); evt.PopupMenu(&menu); }
void MyFrame::OnUndoDropdown(wxRibbonToolBarEvent& evt) { wxMenu menu; menu.Append(wxID_ANY, wxT("Undo C")); menu.Append(wxID_ANY, wxT("Undo B")); menu.Append(wxID_ANY, wxT("Undo A")); evt.PopupMenu(&menu); }
void MyFrame::OnRedoDropdown(wxRibbonToolBarEvent& evt) { wxMenu menu; menu.Append(wxID_ANY, wxT("Redo E")); menu.Append(wxID_ANY, wxT("Redo F")); menu.Append(wxID_ANY, wxT("Redo G")); evt.PopupMenu(&menu); }
void MyFrame::OnPrintDropdown(wxRibbonToolBarEvent& evt) { wxMenu menu; menu.Append(wxID_ANY, wxT("Print")); menu.Append(wxID_ANY, wxT("Preview")); menu.Append(wxID_ANY, wxT("Options")); evt.PopupMenu(&menu); }
void MyFrame::OnNewDropdown(wxRibbonToolBarEvent& evt) { wxMenu menu; menu.Append(wxID_ANY, wxT("New Document")); menu.Append(wxID_ANY, wxT("New Template")); menu.Append(wxID_ANY, wxT("New Mail")); evt.PopupMenu(&menu); }