<Menu>.InsertMenu (Function) In french: <Menu>.InsèreMenu Inserts a menu before another menu in a window. The inserted menu can contain other menus, menu options, separators, ...
// Insert a new menu _Menu.InsertMenu("MNU_Schedule", "MNU_Monitoring", "Project monitoring") // Add an option into the new menu MNU_Monitoring.AddOption("MNU_Prj", "Sales management", Sales_Mgt)
Syntax
Inserting a menu (position defined by a menu name) Hide the details
<Result> = <Source menu>.InsertMenu(<Insert menu> , <Menu to create> , <Caption>)
<Result>: Integer - Position of the menu in the sub-menu,
- -1 if an error occurred.
<Source menu>: Menu name Name of the menu into which the new menu must be added. The new menu will be added at the specified position. <Insert menu>: Menu name Name of the menu used as base position for the insertion. The new menu will be inserted before this position. <Menu to create>: Character string Name of the menu to create and to insert. 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. This caption will be displayed in the window.
Inserting a menu (position defined by a menu subscript) Hide the details
<Result> = <Source menu>.InsertMenu(<Insertion index> , <Menu to create> , <Caption>)
<Result>: Integer - Position of the menu in the sub-menu,
- -1 if an error occurred.
<Source menu>: Menu name Name of the menu into which the new menu must be added. The new menu will be added at the specified position. <Insertion index>: Integer Subscript of the menu used as base position for the insertion. The new menu will be inserted before this position. <Menu to create>: Character string Name of the menu to create and to insert. 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. This caption will be displayed in the window.
This page is also available for…
|
|
|
|