PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview
  • Page editor: defining the actions associated with the menu options
  • Code editor: defining the actions associated with the menu options
  • Displaying the processes associated with a menu option
  • Processes associated by default with the menu options
  • Dynamic programming of menu options
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
Programming a drop-down menu
Overview
Once the drop-down menu of your site is created, all you have to do is associate an action with each menu option.
Programming the menu options can be done:
  • In the page editor, in the option description.
  • In the code editor, by programming in WLanguage or in JavaScript.
Several WLanguage functions can also be used to handle the menu options dynamically, by programming. See Functions for managing menus for more details.
Note: You have the ability to only program the ending options of the menu.
Page editor: defining the actions associated with the menu options
The action associated with the menu option is defined in the description window of the menu option.
Reminder: To display the description window of a menu option:
  1. Click the menu twice: a yellow border appears.
  2. Select the requested menu option.
  3. Display the popup menu of the option and select "Option description".
Code editor: defining the actions associated with the menu options

Displaying the processes associated with a menu option

To display the processes associated with a menu option:
  1. Click the menu twice: a yellow border appears.
  2. Select the requested menu option.
  3. Display the popup menu of option and select "Code".
Two processes are available:
  • Selecting the menu in browser code.
  • Selecting the menu in server code (available for the dynamic pages only).
In this process, the WLanguage functions can be used to:
Note: These processes are available:
  • for the ending options of the menu and sub-menus.
  • Versions 18 and later
    for the main options of the menu (the ones that expand the sub-menus).
    New in version 18
    for the main options of the menu (the ones that expand the sub-menus).
    for the main options of the menu (the ones that expand the sub-menus).

Processes associated by default with the menu options

WEBDEV manages the following processes by default (in the order in which they appear in the code editor):
ProcessRuntime condition
Selection of option (Browser code)Run when the option is selected by the Web user.
Selection of option (Server code)Run when the option is selected by the Web user.
Note: Only the browser codes are available in a static page.

Dynamic programming of menu options

The following WLanguage functions are used to dynamically handle the menu options of a page:
Versions 14 and later
MenuAddMenu
New in version 14
MenuAddMenu
MenuAddMenu
Adds a new menu into a window or into a page.
Versions 14 and later
MenuAddOption
New in version 14
MenuAddOption
MenuAddOption
Adds a new menu option at the end of a menu.
Versions 18 and later
MenuAddPopup
New in version 18
MenuAddPopup
MenuAddPopup
Transforms a menu option of a page in order for this option to open a popup.
Versions 14 and later
MenuAddSeparator
New in version 14
MenuAddSeparator
MenuAddSeparator
Adds a new separator into a menu.
Versions 14 and later
MenuAddURLOption
New in version 14
MenuAddURLOption
MenuAddURLOption
Adds a new menu option at the end of a page menu. This menu option is used to display the page corresponding to the specified URL
Versions 11 and later
MenuDelete
New in version 11
MenuDelete
MenuDelete
Deletes a menu or a menu option.
Minimum required version
  • Version 9
Comments
Click [Add] to post a comment