ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
OpenPopupMenu (Function)
In french: OuvreMenuContextuel
Automatically opens a popup menu for the current control or window.
Example
// -- Click code of BTN_Action button
OpenPopupMenu(MenuDateChoice)
Syntax
OpenPopupMenu([<Name of context menu> [, <X> , <Y >]])
<Name of context menu>: Optional character string
Name of the context menu that must be opened for the current control.
If this parameter is not specified, the default context 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 context menu. This X-coordinate is expressed in pixels, in relation to the upper-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 context menu. This Y-coordinate is specified in pixels, in relation to the upper-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 blocking 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 context menu defined in the MDI parent window. In this case, <Name of context 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.
Business / UI classification: UI Code
Component: wd280obj.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment