AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / Desarrollar una aplicación o un sitio web / Controles, ventanas y páginas / Menús desplegables / WINDEV y WINDEV Mobile
  • Overview
  • Manipulating menu options in the editor
  • Adding a standard menu option
  • Adding a separator
  • Linking a menu option to a preset action
  • Add a submenu
  • Modifying the background color of menus and menu options
  • Deleting a menu option
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Overview
WINDEV and WINDEV Mobile support two types of drop-down menus:
  • main window menus.
    A main menu is always associated with a window. This menu can be displayed under the window's title bar. For more details, see Managing main window menus.
  • custom context menus.
    The user can open a context menu by pressing the right mouse button.
    For more details, see Custom context menu.
A drop-down menu (main or custom context menu) is composed of one or more options and sub-options. Each option runs a WLanguage code.
For example:
Main menu
Context menu
In the editor, you can handle menu options in the same way for both main menus and custom context menus. To handle the menu options, simply edit the relevant menu.
To edit (or display in the editor):
  • WindowsLinux The main menu of a window:
    • open the relevant window in the window editor.
    • select one of the menu options. The options and the sub-options are automatically displayed.
  • A customized context menu: under the "Ventana" pane, in the "Barras y menús" group, pull down "Menús contextuales" and select one of the existing context menus.
Note: WINDEV and WINDEV Mobile also support manipulate menu options programmatically.
This help page explains how to manipulate (add, delete, etc.) menu options in the editor via the context menu. For more details, see:
Manipulating menu options in the editor

Adding a standard menu option

To add a standard menu option:
  • After the selected menu option, you can:
    • open the context menu of the current menu option and select "Add option after".
    • press the Enter key.
  • Before the selected menu option, you can:
    • open the context menu of the current menu option and select "Add option before".
    • press the Ins key.
  • Type the caption for the new menu option.
  • Press Enter to validate the addition.
Remarks:
  • The Esc key is used to cancel the addition of a menu option.
  • To go from a menu option to the next one, use the arrow keys (up and down).

Adding a separator

To add a separator:
  1. Select the menu option in front of which the separator must be added.
  2. Right-click to open the context menu of the option.
  3. Select "Insert a separator".
Note: It is also possible to:
  • add a separator before the selected menu option by pressing the Pause key.
  • add a separator by giving the "-" or "--" or "---" caption to the menu option. The option is changed into a separator when the input is validated.

Linking a menu option to a preset action

To link a menu option to a preset action:
  1. Select the desired menu option.
  2. Right-click to open the context menu of the option.
  3. Select "Preset action...". The window for selecting a preset action is displayed.
  4. Select the requested action and validate.

Add a submenu

To add a submenu:
  1. Select the menu option to which a sub-option must be added.
  2. Right-click to open the context menu of the option.
  3. Select "Transform to expand a submenu".
  4. Type the text of the first option of the new submenu.
  5. Press Enter to validate the addition.
Remarks:
  • You can use the same method to add options in menus and sub-options in submenus.
  • You also have the ability to add a submenu to the selected menu option by pressing the Tab key.
WINDEV

Modifying the background color of menus and menu options

To modify the background color of menus and menu options:
  1. Select the menu or one of its options.
  2. Open the description window ("Option description" in the context menu).
  3. On the "Style" tab, configure:
    • the color of the menu bar when inactive or hovered over.
    • the color of the options when inactive or hovered over.
"Automatic" applies the default color used by Windows.
Note: To ensure that the defined colors are taken into account, uncheck the "Show menu in XP look" option in the "Style" tab of the window description.

Deleting a menu option

To delete a menu option:
  1. Select the menu option to delete.
  2. Right-click to open the context menu of the option.
  3. Select "Delete".
Note: You can also delete the current menu item by pressing the Delete key.
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 24/09/2024

Señalar un error o enviar una sugerencia | Ayuda local