MenuAddMenu (Function) In french: MenuAjouteMenu
Not available
Adds a new menu into a window or into a page. This menu can contain other menus, menu options, separators, ...
// Add a new menu MenuAddMenu(MENU_MyMenu, "OPT_Schedule", "Schedule") // Add an option into the new menu MenuAddOption("OPT_Schedule", "OPT_Create", "Create", Create_Schedule) // Associate an image with the menu option {"OPT_Create", indControl}..Image = "schedule.png" // Add a separator MenuAddSeparator("OPT_Schedule") // Add a new option MenuAddOption("OPT_Schedule", "OPT_View", "View", View_schedule)
Syntax
Adding a menu Hide the details
<Result> = MenuAddMenu(<Source menu> , <Menu to create> , <Caption>)
<Result>: Integer Position of the menu. A fatal error occurs if the menu was not added. <Source menu>: Menu name Name of the menu into which the new menu must be added. The new menu will be added at the end of this menu.
<Menu to create>: Character string Name of the menu that must be added. This name will be used to handle the menu through programming. A fatal error occurs if this name corresponds to an existing menu. <Caption>: Character string Caption of the new menu. The caption will be displayed in the window or in the page.
This page is also available for…
|
|
|
|