ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Menu functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
<Menu>.InsertSeparator (Function)
In french: <Menu>.InsèreSéparateur
Inserts a separator into a menu. To insert a separator at the end of menu, use <Menu>.AddSeparator.
Example
// Ajoute un nouveau menu
_Menu.AjouteMenu("MNU_Planning", "Planning")
// Ajoute des options dans le nouveau menu
MNU_Planning.AjouteOption("MNU_Créer", "Créer", Créer_Planning)
MNU_Planning.AjouteOption("MNU_Voir", "Voir", Voir_Planning)
// Insère un séparateur
MNU_Planning.InsèreSéparateur("MNU_Créer")
Syntax

Inserting a separator (position defined by a name of menu option) Hide the details

<Source menu>.InsertSeparator(<Insertion option>)
<Source menu>: Menu name
Name of the menu where the separator must be inserted.
<Insertion option>: Character string
Name of the menu option used as base position for the insertion. The new separator will be inserted before this position.

Inserting a separator (position defined by a subscript) Hide the details

<Source menu>.InsertSeparator(<Subscript>)
<Source menu>: Menu name
Name of the menu where the separator must be inserted.
<Subscript>: Integer
Index of menu option used as base position for insertion. The new separator will be inserted before this position.
Component: wd300obj.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/25/2024

Send a report | Local help