ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Developing an application or website / Controls, windows and pages / Drop-down menus / WEBDEV
  • Overview of menu
  • Creating a drop-down menu
  • Creating a drop-down menu
  • Adding options
  • Options available in a menu description
  • Describing a menu
  • Style of a menu
  • Deleting a menu
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
Overview of menu
In WEBDEV, you can create the following elements in HTML pages:
  • a drop-down menu.
  • a context menu.
    PHP Not available.
From the different options of these menus, you can:
  • display pages,
  • execute the code of the buttons in the page,
  • ...
In WEBDEV, a drop-down or context menu in a page is considered as a control.
This control has its own style characteristics. In the case of a drop-down menu, it can be moved in the page.
For more details, see The Context Menu control.
Creating a drop-down menu

Creating a drop-down menu

To create a drop-down menu:
  1. On the "Creation" tab, in the "Navigation" group, click "Menu".
  2. The menu automatically appears in the page with two default options.
  3. The menu can be moved in the page to the requested position.

Adding options

To add options, click the selected menu: a yellow border appears: the menu switches to edit mode. The context menu of the menu options allows you to directly add the options into the page in edit. For more details, see Handling menu options.
Context menu of menu options
Remarks:
  • To edit the menu, you can:
    • press Space,
    • press Enter,
    • open the context menu and select "Edit menu".
  • Press Esc to exit edit mode (the yellow border will disappear).
Options available in a menu description

Describing a menu

To display the menu description:
  1. Click the menu options once.
    • If the yellow border is not displayed: right-click the menu and select "Description".
    • If the yellow border is displayed: right-click the menu and select "Menu description".
  2. The different tabs are used to define the menu characteristics:
    • In the "General" tab, you can specify:
      • the menu name,
      • its orientation:
        • Horizontal (default): Menu options are laid out horizontally.
        • Vertical Popup: Menu options are laid out vertically. Sub-options open next to the parent option.
        • Vertical Drop-down: Menu options are laid out vertically. Sub-options open below the parent option.
      • the option selected by default.
        Remark: The option selected by default can be changed programmatically using the Selected property.
    • In the "UI" tab, you can specify:
      • whether or not the menu is visible.
      • the process that will be executed on the controls of the page (send values to the server, don't send, etc.). By default, no data is sent to the server when a menu option is clicked.
    • The "Advanced" tab is used to enter the HTML code generated before or after the control.
    • The "Style" tab is used to define:
      • the style of menu.
      • the style of submenus.
      • the available effects for displaying the menu options.

Style of a menu

The style of a WEBDEV menu is described in the "Style" tab of the description window of menu.
You have the ability to use, create and modify:
  • the WEBDEV styles. In this case, the style sheet is modified.
  • the aspect of the control. In this case, the control is not linked to the style sheet.
When describing the style of a WEBDEV menu, you have the ability to specify:
  • The style of main menu: style of caption, ...
  • The background image used for the main menu.
  • The style of submenus: caption, ...
  • The image of submenus: background image and image of options that open a submenu.
  • The available effects for displaying the menu options.
Remark: The Drop-down button button expands a menu used to select the images:
  • The "Browse" option is used to select an image file accessible from your computer.
  • The "Catalog" option is used to find (in the image catalog) the images corresponding to the menu options (search performed in the following categories: "Main menu", "Tab menu" and "Menu option").
The available effects for displaying the menu options
Several effects can be used to display the submenus of a menu.
  • expand and wipe (by default): When hovering the main option, the submenus are expanded with a sweeping effect until their final position. Click "Details" to configure the direction of the sweeping effect.
  • fade (by default): When hovering the main option, the submenus are expanded with a progressive change of the style defined for the normal status to the style defined for the rollover. Click "Details" to configure the trigger and the duration of the effect.
  • offset: During the rollover, the options of the submenu are expanded with an offset for each hovered option. Click "Details" to configure the trigger and the duration of the effect, as well as the offset according to the different axes.
    Effect in a menu
  • fast then slow: When hovering the main option, the submenus are expanded with a soft effect. Click "Details" to configure the duration of the animation.
  • expand and stretch: When hovering the main option, the submenus are expanded with a stretched effect. Click "Details" to configure the duration of the animation.
Remark: The technology used for these effects is based on the CSS3 standard. Some browsers partially support the effects when the page is not in HTML 5 format.
WEBDEV gives you the ability to:
  • add an effect: "Add an effect" button.
  • delete an effect: select the effect and click the "-" button.
  • organize the effects via the arrow buttons.
Caution: Some effects are not compatible and they cannot be used at the same time.
Deleting a menu
To delete a menu:
  1. Select the menu (the yellow border must not be displayed).
  2. Press the Del key to delete the options.
Related Examples:
DHTML sidebar Unit examples (WEBDEV): DHTML sidebar
[ + ] This example explains how to create a DHTML menu with WEBDEV.
This example allows you to:
- Create a DHML menu
- Add a menu entry
- Add a menu option
The Linear Looper control Unit examples (WEBDEV): The Linear Looper control
[ + ] This example explains how to use the "Linear Looper" control of WEBDEV.
The "Linear Looper" control is used to create some graphic menus for example.
Minimum version required
  • Version 9
Comments
Click [Add] to post a comment

Last update: 06/23/2023

Send a report | Local help