GUI Help > Menus > createMenu
createMenu
handle menu=createMenu(handle parentGadget)
Description: Creates a main menu, ie. the one which appears at the top of a window with items such as "File","Edit","Tools" and "Help". To use menus, firstly create a main menu using createMenu, add items to it using addMenuItem, and then for each item add a submenu using createSubMenu.
Return Value: Handle to the new menu.
Parameters:
parentGadget | Handle to a parent gadget, usually a window, which the menu will appear in. This can be 0, in which case the menu will appear in the main menu.
Remarks:
See Also:
Example: (Note: You will need to include the GUI constants file for this example to work)