PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

X
Y
  • Adding menu options into the popup menu
  • Popup menu and group of controls
  • Horizontal Table control
  • Changing the popup menu and storing information about the Table controls
  • Limits
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
..PopupMenu is used to:
  • Find out the custom popup menu associated with a control or window.
  • Modify the popup menu associated with a control or window (associate another popup menu with the control or window).
  • Customize the system menus of controls by adding options.
Reminder: A popup menu is a menu that is opened by the user via a right mouse click. A popup menu is created in the window editor during the control description ("GUI" tab). See Managing the popup menus for more details.
The arrow found on the right of control is used to edit or create a popup menu in the menu editor.
Note: Some types of controls (edit controls, tables, ...) have a default popup menu (displayed if no custom popup menu is associated with the control). This system menu can also be disabled.
Versions 15 and later
WINDEV MobileAndroid This property is now available for the Android applications.
New in version 15
WINDEV MobileAndroid This property is now available for the Android applications.
WINDEV MobileAndroid This property is now available for the Android applications.
Versions 20 and later
WINDEV MobileiPhone/iPad This property is now available for the iPhone/iPad applications.
WINDEV MobileAndroid This property is now available for the Table controls and for the table columns in the Android applications.
New in version 20
WINDEV MobileiPhone/iPad This property is now available for the iPhone/iPad applications.
WINDEV MobileAndroid This property is now available for the Table controls and for the table columns in the Android applications.
WINDEV MobileiPhone/iPad This property is now available for the iPhone/iPad applications.
WINDEV MobileAndroid This property is now available for the Table controls and for the table columns in the Android applications.
Versions 21 and later
WINDEVWINDEV MobileUniversal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
WINDEVWINDEV MobileUniversal Windows 10 App This function is now available in Universal Windows 10 App mode.
WINDEVWINDEV MobileUniversal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
// Code used to modify the popup menu associated with the button
// Popup1 and Popup2 are existing popup menus
IF BTN_Button1..PopupMenu = "Popup1" THEN
BTN_Button1..PopupMenu = "Popup2"
ELSE
// Restores the default popup menu of AAFs
BTN_Button1..PopupMenu = ""
END
// Initialization code of edit control
// Adds the Popup1 menu after the system popup menu of control
// Popup1 is an existing popup menu
MySelf..PopupMenu = "+Popup1"
Syntax

Finding out the popup menu associated with a control or window Hide the details

<Menu Name> = <Element Name>..PopupMenu
<Menu Name>: Character string
  • Name of custom popup menu associated with the object,
  • Empty string ("") if no custom popup menu is associated with the object.
<Element Name>: Character string (with or without quotes)
Name of control or window for which the name of custom popup menu is requested.

Modifying the popup menu associated with a control or window Hide the details

<Element Name>..PopupMenu = <Name of New Menu>
<Element Name>: Character string (with or without quotes)
Name of control or window whose popup menu will be modified.
<Name of New Menu>: Character string (with or without quotes) or constant
Name of new custom popup menu associated with the object (empty string to restore the system popup menu).
To add a popup menu to the system menu, you must:
  • write the "+" sign in front of the menu name (to display the new menu after the options of system menu).
  • write the "+" sign after the menu name (to display the new menu before the options of system menu).
  • specify an empty string to use the default popup menu of AAFs
You also have the ability to use the following constants:
PopupMenuDisabledUsed to disable the display of all the popup menus (including the system popup menus or the popup menus for the Currency + Euro edit controls).
AndroidUniversal Windows 10 App This constant is not available.
PopupMenuSystemUsed to disable the display of the menu options specific to the AAFs (Automatic Application Features). Only the Windows popup menu is displayed.
Also allows you to access the Unicode options available for some Windows systems ("Read from right to left, Display the Unicode control characters, ...").
Universal Windows 10 App This constant is not available.
Remarks

Adding menu options into the popup menu

..PopupMenu cannot be used to cumulate the custom popup menus associated with a control. However, menu options can be added to an existing popup menu by MenuAddMenu, MenuAddOption, ... See Functions for managing menus for more details.

Popup menu and group of controls

A popup menu can be associated with a group of controls: all the controls belonging to the group will have the same popup menu. In read mode, <Result> always corresponds to an empty string ("").
WINDEVWINDEV MobileWindowsWindows Mobile

Horizontal Table control

The system popup menu of the Horizontal Table controls does not contain the export options.

Changing the popup menu and storing information about the Table controls

When changing the popup menu, the persistent information previously saved for the Table control (size of columns, ...) is not available anymore. This information is re-initialized.

Limits

..PopupMenu only applies to the controls found in a window (including the table columns). This property cannot be used with the menus, etc.
..PopupMenu does not apply to the following controls:
  • Static
  • Non-clickable image
  • Progress bar
  • Shape
Java ..PopupMenu only applies to the following elements:
  • Button.
  • Edit control.
  • Image.
  • Check box.
  • Radio button.
  • List box.
  • Combo box.
  • TreeView.
  • Tab.
  • Window.
  • Table column.
  • Supercontrol.
Minimum required version
  • Version 9
This page is also available for…
Comments
Exemplo Popup
//Na Aula de Hoje
//vou Mostrar como criar Menu Popup
//Na Janela (Window)
//No botao com seta a direita
//No botao passando mouse em Cima

//Abrir Popup
OpenPopupMenu(MENU_ExemploPopUp)

// Blog com Video e Exemplo

http://windevdesenvolvimento.blogspot.com.br/2017/02/aula-1061-windev-windows-007-menu-popup.html

http://doc.windev.com/en-US/?2510077&name=PopupMenu
De matos
Feb. 21 2017
vou mostrar nessa aula como colocar popup menu na window
vou mostrar nessa aula como colocar popup menu na window

I will show in this class how to put popup menu in the window

Je vais montrer dans cette classe comment mettre menu contextuel dans la fenêtre

//Blog com Video e Exemplo
http://windevdesenvolvimento.blogspot.com.br/2016/08/curso-windev-funcoes-windowsjanela-004.html
https://www.youtube.com/watch?v=e1kUAurSHi8

De matos AMARILDO
Aug. 28 2016