PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview
  • How to proceed?
  • Sharing popup menus between several project windows
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Sharing the popup menus in the project
Overview
In most cases, several popup 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 popup menu to share.
  2. Apply the window template to the windows that use the popup menu: the popup menus defined in the template will be available in the window.
Therefore, the popup menus can be overloaded in order to adapt to a specific window without affecting the other windows.
Versions 21 and later
Universal Windows 10 App This feature is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This feature is now available in Universal Windows 10 App mode.
Universal Windows 10 App This feature is now available in Universal Windows 10 App mode.
How to proceed?

Sharing popup menus between several project windows

To share popup menus between several windows of a project:
  1. Create a new window template ("File .. New .. Window template").Create a new window template:
    • Click among the quick access buttons.
    • In the wheel that is displayed, hover "Window" and click "Window template".The window for creating a new element is displayed: click "Window" then "Window template".
  2. Insert a popup menu into this window template ("Insert .. New popup menu").Insert a popup menu into this window template: on the "Window" pane, in the "Bars and menus" group, expand "Popup menus" and select "New popup menu".
  3. Describe the options of the popup menu: name, caption, code, ...
  4. Save the window template.
In the windows that must use the popup menu:
  1. Associate the window template with the current window ("Windows .. List of templates used").Associate the window template with the current window: on the "Window" pane, in the "Templates" group, expand "Templates" and select "List of templates used".
  2. Click the "Add" button and select the template containing the popup menus.
  3. Answer NO to the following question: "Do you want to update the window properties from this template?".
  4. Validate the list of templates.
  5. The popup menus described in window templates can be used by the window controls.
Minimum required version
  • Version 12
This page is also available for…
Comments
Click [Add] to post a comment