01-18-2010 04:42 AM
01-18-2010 05:38 AM
Perhaps you could benefit from the use of a popup menu (similar to usual context menus of the operating system). The menu you have designed in the menu bar can be prompted to the user with the following lines in a control callback (here while right clicking on the control but you could choose any other event):
switch (event) {
case EVENT_RIGHT_CLICK:
// Context menu
choice = RunPopupMenu (GetPanelMenuBar (panel), menuID, panel, eventData1, eventData2, 0, 0, 0, 0);
switch (choice) {
// Your code for single cases here
}
}