PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
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
OpenPopupMenu (Function)
In French: OuvreMenuContextuel
Automatically opens a popup menu for the current control or window.
Versions 16 and later
WINDEVLinux This function is now available for the WINDEV applications in Linux.
New in version 16
WINDEVLinux This function is now available for the WINDEV applications in Linux.
WINDEVLinux This function is now available for the WINDEV applications in Linux.
Versions 20 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 20
iPhone/iPad This function is now available for the iPhone/iPad applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Versions 21 and later
Android This function is now available for the Android applications.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Android This function is now available for the Android applications.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Android This function is now available for the Android applications.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
// -- Click code of BTN_Action button
OpenPopupMenu(MenuDateChoice)
Syntax
OpenPopupMenu([<Name of Popup Menu> [, <X> , <Y>]])
<Name of Popup Menu>: Optional character string (with or without quotes)
Name of the popup menu that must be opened for the current control.
If this parameter is not specified, the default popup menu associated with the control is opened.
Android This parameter is not available. Only the popup menu of the current control can be opened.
<X>: Integer (optional)
X coordinate of the opening position of the popup menu. This X coordinate is expressed in pixels, in relation to the top left corner of the window. If <X> and <Y> are not specified, the popup menu is opened at mouse position.
AndroidiPhone/iPad This parameter is not available:
  • On iPhone, the popup menu is opened according to the iPhone standard: the popup menu comes from the bottom of the screen.
  • On iPad, the popup menu is opened according to the iPad standard: the popup menu is displayed beside the control that triggered the menu opening.
  • In Android, the popup menu is opened in the middle of the screen.
<Y>: Integer (optional)
Y coordinate of the opening position of the popup menu. This Y coordinate is specified in pixels, in relation to the top left corner of the window. If <X> and <Y> are not specified, the popup menu is opened at mouse position.
AndroidiPhone/iPad This parameter is not available:
  • On iPhone, the popup menu is opened according to the iPhone standard: the popup menu comes from the bottom of the screen.
  • On iPad, the popup menu is opened according to the iPad standard: the popup menu is displayed beside the control that triggered the menu opening.
  • In Android, the popup menu is opened in the middle of the screen.
Remarks
  • This function must be run in the code associated with a control or window. This function should not be used in the code for resizing a window.
  • This function is a locking function until the popup menu is closed.
    iPhone/iPad This function is not a locking function in iOS.
  • WINDEV For a MDI child window, it may be interesting to open a popup menu defined in the MDI parent window. In this case, <Name of Popup Menu> must have the following format:
    NameOfWindow.NameOfPopupMenu
  • Android This function must be used in one of the processes of the control for which the popup menu must be displayed.
Components
WINDEVReports and Queries wd230obj.dll
Windows Mobile wp230obj.dll
Java wd230java.jar
Linux wd230obj.so
Android wd230android.jar
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment