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.
Caution: ControlContextMenu should only be used in WLanguage events associated with context menus and any procedures they call up.
Example
// -- Code de l'option menu
// Identification du champ sur lequel le menu contextuel a été ouvert
ResChamp = ControlContextMenu()
Syntax
<Result> = ControlContextMenu()
<Result>: Character string
  • Name of the control (in uppercase) on which the context menu was 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: 09/24/2024

Send a report | Local help