PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
ControlPopupOwner (Function)
In french: ChampContextuel
Warning
From version 17, PopupField is kept for backward compatibility. This function is replaced by ControlPopupOwner.
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.
Example
// -- Code of the menu option
// Identify the control on which the popup menu was opened
ResControl = ControlPopupOwner()
Syntax
<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>.
Remarks
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.
Component: wd280obj.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment