PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
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
<Menu>.AddSeparator (Function)
In french: <Menu>.AjouteSéparateur
AjaxNot available
Adds a new separator into a menu. To insert a separator at a specific location, use <Menu>.InsertSeparator.
Example
// Adds a new menu
MENU_MyMenu.AddMenu("OPT_Schedule", "Schedule")
// Adds an option into the new menu
OPT_Schedule.AddOption("OPT_Create", "Create", Create_Schedule)
// Associates an image with the menu option
{"OPT_Create", indControl}..Image = "schedule.png"
// Adds a separator
OPT_Schedule.AddSeparator()
// Adds a new option
OPT_Schedule.AddOption("OPT_View", "View", View_schedule)
Syntax
<Result> = <Source menu>.AddSeparator()
<Result>: Integer
Position of the separator in the menu. A fatal error occurs if the separator was not added.
<Source menu>: Menu name
Name of the menu where the separator must be added. The separator will be added at the end of this menu.
Component: wd260obj.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment