ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / Control functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
ControlContextMenu (Function)
In french: ChampContextuel
Warning
From version 28, ControlPopupOwner is kept for backward compatibility. This function has been replaced with ControlContextMenu.
Identifies the control on which the context menu was opened.
Attention The function ControlContextMenu function should only be used in WLanguage events associated with context menus and any procedures they call.
Example
// -- Code of the menu option
// Identify the control on which the context menu was opened
ResControl = ControlContextMenu()
Syntax
<Result> = ControlContextMenu()
<Result>: Character string
  • Name of the field on which the context menu has been opened,
  • Empty string ("") if no context 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: wd300obj.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 01/18/2025

Send a report | Local help