ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Control functions
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
ControlContextMenu (Function)
In french: ChampContextuel
Warning
From version 28, ControlPopupOwner is kept for backward compatibility. This function is replaced by ControlContextMenu.
Identifies the control on which the context menu was opened.
Caution: ControlContextMenu should only be used in the WLanguage events of the context menus and in the procedures they may call.
Example
// -- Code of the menu option
// Identify the control on which the popup menu was opened
ResControl = ControlContextMenu()
Syntax
<Result> = ControlContextMenu()
<Result>: Character string
  • Name of the control (in uppercase) on which the popup menu was opened,
  • Empty string ("") if no popup menu was opened.
If the control belongs to a supercontrol, <Result> has the following format: <Supercontrol name>.<Control name>.
Remarks
When the same context menu is assigned to multiple controls, ControlContextMenu identifies the control on which the menu has been expanded in order to run the appropriate process.
Business / UI classification: UI Code
Component: wd290obj.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/14/2023

Send a report | Local help