Compound Menus
Function Introduced:
The
ProCompoundmenuCreate() function enables you to take an array of previously loaded menu names and append them together into one menu.
To Create a Compound Menu:
1. Specify which submenus to include in the compound menu, as follows:
static char **compound_menu = {"MENU_1","MENU_2", "MENU_3", ""};
2. Load the actions on the buttons.
3. Set the button visibility and accessibility.
4. Generate the compound menu, as follows:
ProCompoundmenuCreate (compound_menu, n_submenus);
5. Get user input, as follows:
ProMenuProcess (compound_menu[0], action);
Parent topic