ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Developing an application or website / Controls, windows and pages / Drop-down menus / WINDEV and WINDEV Mobile
  • Overview
  • Vocabulary associated with the main menus
  • How to create, edit and delete a main menu?
  • Creating a main menu
  • Editing a main menu
  • Deleting a main menu
  • ? menu
  • Handling a main menu through programming
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
A main menu is always associated with a window. This menu is displayed below the title bar of the window. In most cases, the applications contain a menu window. This window only contains a main menu and is used to access the other windows of the application.
For example:
Main menu of a Windows application
Vocabulary associated with the main menus
To easily handle a main menu, you must be familiar with the following vocabulary:
Vocabulary associated with menus
How to create, edit and delete a main menu?

Creating a main menu

To create a main menu:
  1. In the window editor, open the window where a main menu must be added.
  2. On the "Window" tab, in the "Bars and menus" group, expand "Main menu" and select "Add main menu". The first menu option is displayed in the menu bar. By default, the name of main menu is "_Menu" and the caption of this first option is "Menu".
    Universal Windows 10 App The menu is automatically created in the Action Bar control.
  3. To modify the name of main menu:
    • WINDEV display the "General" tab of window description ("Description" in the context menu of the window) and type the new name for the main menu in the "Name of main menu" option.
  4. Add the menu options into the window in edit. For more details, see Handling the menu options.
Tip: To add images into the menu options, use the image catalog ("Catalog" option of Drop-down button button). The selected images will be automatically adapted to the size and to the image format expected by the runtime platform used.
WINDEVWindows Remark: Menu in the clipped windows: You have the ability to specify the position of the main menu in order to adapt it to the window. To position the menu:
  1. Open the window description ("Description" in the context menu).
  2. In the "General" tab, enter the X and Y coordinates of the menu.

Editing a main menu

To edit a main menu:
  1. Open a window containing a main menu in the window editor.
  2. Select one of the menu options. The options and the sub-options are automatically displayed.

Deleting a main menu

To delete a main menu:
  1. In the window editor, open the window from which the main menu must be deleted.
  2. On the "Window" tab, in the "Bars and menus" group, expand "Main menu" and select "Delete main menu". All the menu options and the code associated with this main menu are deleted.
WINDEVWindows

? menu

WINDEV allows you to automatically insert a "?" menu at the end of the main menu.
For more details, see ? menu.
Handling a main menu through programming
A main menu cannot be directly handled through programming. However, the options of a main menu can be handled through programming. For more details, see Handling the menu options by programming.
Related Examples:
WD Animated Menu Training (WINDEV): WD Animated Menu
[ + ] The "WD Animated Menu" example proposes several menu animations, based on the interface of the full example named "WD Managing Orders".
These animations allow the main menu to be more attractive and dynamic when opening the window:
- appearance of the menu buttons with a fade-in effect,
- movement of the buttons
- etc.
WD OSD Training (WINDEV): WD OSD
[ + ] OSD means: On-Screen Display. This is the name given to the interfaces that appear on the computer screens or on the TV screens for example. They are used to perform settings in most cases.
These types of menus are displayed above all the other elements found on the screen.
This example explains how to create this type of interface in WINDEV.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/23/2023

Send a report | Local help