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
MenuAddSeparator (Function)
In french: MenuAjouteSéparateur
AjaxNot available
Adds a new separator in a menu (drop-down or context menu). To insert a separator at a specific location, use MenuInsertSeparator.
Example
WINDEV
// Adds a new menu to MENU_MyMenu
MenuAddMenu(MENU_MyMenu, "OPT_Schedule", "Schedule")
// Adds an option to the new OPT_Schedule menu
MenuAddOption("OPT_Schedule", "OPT_Create", "Create", Create_Schedule)
// Associates an image with the OPT_Create menu option
{"OPT_Create", indControl}..Image = "schedule.png"
// Add a separator
MenuAddSeparator("OPT_Schedule")
// Adds a new option (OPT_View)
MenuAddOption("OPT_Schedule", "OPT_View", "View", View_schedule)
Syntax
<Result> = MenuAddSeparator(<Source menu>)
<Result>: Integer
Position of the separator in the drop-down or context menu. A fatal error occurs if the separator is not added.
<Source menu>: Menu name
Name of the menu where the separator must be added. The separator will be added after the last option in this menu.
Remark: This name can correspond to a context menu.
PHP Context menus are not available.
Component: wd290obj.dll
Minimum version required
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/07/2023

Send a report | Local help