Identifies the control on which the popup menu was opened.
Caution: ControlPopupOwner should only be used in the processes of the context menus and in the procedures they may call.
This function is now available for WINDEV applications in Linux.
// -- Code of the menu option
// Identify the control on which the popup menu was opened
ResControl = ControlPopupOwner()
<Result> = ControlPopupOwner()
<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 popup menu is assigned to multiple controls, ControlPopupOwner identifies the control on which the menu has been expanded in order to run the appropriate process.