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.
New in version 28
// -- 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