PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
MenuAdd (Function)
In French: MenuAjoute
Adds an existing popup menu into the main menu of the current window.
Versions 16 and later
WINDEVLinux This function is now available for the WINDEV applications in Linux.
New in version 16
WINDEVLinux This function is now available for the WINDEV applications in Linux.
WINDEVLinux This function is now available for the WINDEV applications in Linux.
Example
// Add the "MENU_PopupMenu1" menu into the menu option "OPT_File"
MenuAdd(OPT_File, MENU_PopupMenu1)

// Add the "MENU_PopupMenu2" menu into the main menu "_Menu"
MenuAdd(_Menu, MENU_PopupMenu2)
Syntax
MenuAdd(<Name of Destination Menu> , <Name of Popup Menu> [, <Position>])
<Name of Destination Menu>: Character string (with or without quotes)
Name of the menu option where the insertion must be performed.
If this parameter corresponds to an empty string (""), the popup menu is added to the main menu.
If this parameter corresponds to a menu, the popup menu is added to the options of this menu.
If this parameter corresponds to a menu option, this menu option will display the options of the popup menu.
<Name of Popup Menu>: Character string (with or without quotes)
Name of the popup menu that must be inserted.
<Position>: Optional integer
Position where the menu will be inserted.
If this parameter is not specified or if it is equal to -1, the popup menu is added at the end.
If this parameter is equal to 1, the popup menu is inserted at the beginning.
Remarks
If the window includes no main menu, this menu is created.
Components
WINDEVReports and Queries wd230obj.dll
Windows Mobile wp230obj.dll
Linux wd230obj.so
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment