Identifies the control on which the popup menu was opened.
Caution: ControlPopupOwner should only be used in the processes of the popup menus and in the procedures they may call.
This function is now available for the 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 several controls, ControlPopupOwner is used to identify the control on which the menu was expanded in order to run the appropriate process.