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.
// -- Code of the menu option
// Identify the control on which the popup menu was opened
ResControl = ControlContextMenu()
<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>.
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