ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Menu functions
  • Opening an Active WEBDEV Page
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
MenuAddURLOption (Function)
In french: MenuAjouteOptionURL
AjaxNot available
Adds a new option after the last option of a drop-down or context menu. This menu option opens the page that corresponds to the specified URL.
Example
// Add a new menu
MenuAddMenu(_Menu, "MNU_Site", "My Site")
// Add an option into the new menu
MenuAddURLOption("MNU_Site", "OPT_PCSOFT", "PC Soft", "http://www.windev.com")
Syntax
<Result> = MenuAddURLOption(<Source menu> , <Option to create> , <Caption> , <Option URL>)
<Result>: Integer
Position of the option in the menu. If the option is not added, a fatal error occurs.
<Source menu>: Menu name
Name of the menu to which the menu option should be added. The option 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.
<Option to create>: Character string
Name of the menu option to add. This name will be used to programmatically handle the menu option. If there is an option with the same name, a fatal error occurs.
<Caption>: Character string
Text of the new menu option. This text will be displayed in the page and will allow users to select the option.
<Option URL>: Character string
Address of the page to open when the option is selected.
Remarks
WEBDEV - Server codeWindows

Opening an Active WEBDEV Page

You can use MenuAddURLOption to open an Active WEBDEV Page. In this case, you can use PageAddress to build the URL of this page. For example:
MenuAddURLOption(MENU_Menu1.OPT_Option1, "OPT_AWPPage", "Active WEBDEV Page", PageAddress(PAGE_AWP))
Component: wd290page.dll
Minimum version required
  • Version 14
Comments
Click [Add] to post a comment

Last update: 04/25/2023

Send a report | Local help