ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Menu functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Adds a new menu to an existing drop-down or context menu of a window or page. This new menu can contain:
To insert a menu at a specific location, use MenuInsertMenu.
Example
Syntax

Adding a menu Hide the details

<Result> = MenuAddMenu(<Source menu> , <Menu to create> , <Caption>)
<Result>: Integer
Position of the menu. If the menu is not added, a fatal error occurs.
<Source menu>: Menu name
Name of the drop-down or context menu to which the new menu should be added. The name of the menu corresponds to:
  • the name of a context menu. The new menu will be added after the options of the context menu.
  • the name of a menu option. This option will then be transformed into a menu.
<Menu to create>: Character string
Name of the menu to be added. This name will be used to programmatically handle the menu. A fatal error occurs if this name corresponds to an existing menu.
<Caption>: Character string
Text of the new menu. This text will be displayed in the window or page.
Component: wd290obj.dll
Minimum version required
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/21/2023

Send a report | Local help