PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
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.
Versions 16 and later
WINDEVLinux This function is now available for WINDEV applications in Linux.
New in version 16
WINDEVLinux This function is now available for WINDEV applications in Linux.
WINDEVLinux This function is now available for WINDEV applications in Linux.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
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 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.
<X>: Integer (optional)
X-coordinate of the opening position of the context 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.
<Y >: Integer (optional)
Y-coordinate of the opening position of the context 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.
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.
  • 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
Component: wd270obj.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment