|
|
|
|
- Overview
- Manipulating menu options in the editor
- Adding a standard menu option
- Adding a separator
- Linking a menu option to a preset action
- Adding a sub-menu
- Modifying the background color of menus and menu options
- Deleting a menu option
Handling menu options via the context menu
WINDEV y WINDEV Mobile soportan dos tipos de menús desplegables: - menús principales de las ventanas.
Un menú principal siempre está asociado a una ventana. Este menú puede aparecer bajo la barra de título de la ventana. Para obtener más información, consulte Gestión de los menús de la ventana principal. En una aplicación móvil, el menú se muestra a través del Action Bar control. Para obtener más información, consulte Action Bar de una ventana. - menús contextuales personalizados.
El usuario puede abrir un menú contextual presionando el botón derecho del ratón. Para obtener más información, consulte Menú contextual personalizado.
Un menú desplegable (menú contextual principal o personalizado) está compuesto por una o varias opciones y subopciones. Cada opción ejecuta un código WLanguage. Por ejemplo: En el editor, puede manipular las opciones de menú de la misma manera tanto para los menús principales como para los menús contextuales personalizados. Para manipular las opciones de menú, simplemente edite el menú correspondiente. Para editar (o mostrar en el editor): - El menú principal de una ventana:
- Abra la ventana correspondiente en el editor de ventanas.
- seleccione una de las opciones de menú. Las opciones y subopciones se muestran automáticamente.
- Un menú contextual personalizado: en la pestaña "Ventana", en el grupo "Barras y menús", amplíe "Menús contextuales" y seleccione uno de los menús contextuales existentes.
This help page explains how to manipulate menu options (add, delete, etc.) in the the popup menu options editor.. 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:
- either display the popup menu of the current menu item (right-click) and select "Add an item after".
- press the Enter key.
- Before the selected menu option, you can:
- either display the popup menu of the current menu item (right-click) 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).
- If a window contains more than 2 menus, an arrow is used to display the other menus in the window editor.
Adding a separator To add a separator: - Select the menu option in front of which the separator must be added.
- Right-click to open the context menu of the option.
- Select "Insert a separator".
Remark: You also have the ability 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: - Select the desired menu option.
- Right-click to open the context menu of the option.
- Select "Preset action...". The window for selecting a preset action is displayed.
- Select the requested action and validate.
Adding a sub-menu To add a submenu: - Select the menu option to which a sub-option must be added.
- Right-click to open the context menu of the option.
- Select "Transform to expand a submenu".
- Type the text of the first option of the new submenu.
- 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.
- The sub-menus are not available in the popup menus.
Deleting a menu option To delete a menu option: - Select the menu option to delete.
- Right-click to open the context menu of the option.
- Select "Delete".
Remark: You can also delete the current menu option with the Delete key.
Esta página también está disponible para…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|