ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / Developing an application or website / Controls, windows and pages / Drop-down menus / WINDEV and WINDEV Mobile
  • Overview
  • How to?
  • Sharing context menus between several project windows
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Sharing the context menus in the project
Overview
In most cases, several context menus are included in your applications.
One or more menus can be shared between several windows of your application. All you have to do is use the window templates.
The principle is straightforward, you must:
  1. Create a specific window template. This window template contains the context menu to share.
  2. Apply the window template to windows using the context menu: the context menu(s) defined in the template will be available in the window.
Therefore, the context menus can be overloaded in order to adapt to a specific window without affecting the other windows.
How to?

Sharing context menus between several project windows

To share context menus between several windows of a project:
  1. Create a new window template:
    • Click in the quick access buttons.
    • The window for creating a new element appears: click on "Window", then on "Window template".
  2. In this window template, insert a context menu: under the "Window" pane, in the "Bars and menus" group, pull down "Popup menus" and select "New context menu".
  3. Describe the various context menu options: name, label, code, etc.
  4. Save the window template.
In the windows that must use the context menu:
  1. Associate the window template with the current window: under the "Window" pane, in the "Templates" group, pull down "Templates" and select "List used templates".
  2. Click the "Add" button and select the template containing the context menus.
  3. To the question "Do you want to update the window properties from this template", answer NO.
  4. Validate the list of templates.
  5. The context menus described in window templates can be used by the window controls.
Minimum version required
  • Version 12
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/24/2024

Send a report | Local help