ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Control functions
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
Returns the name of the control located at a given position.
Example
// -- Click on [HOME]
 
// Find the control in the upper-left corner of the window
sControl is string
sControl = ControlInfoXY(10, 10, WIN_Management)
IF sControl <> "" THEN
SetFocus(sControl)
END
Syntax
<Result> = ControlInfoXY(<X> , <Y> [, <Parent>])
<Result>: Character string
Name of the control to find.
<X>: Integer
X-coordinate (in pixels) to be analyzed.
<Y>: Integer
Y-coordinate (in pixels) to be analyzed.
<Parent>: Optional character string
Name of the parent of the element sought. This parameter can correspond to the name of a control or window.
  • If this parameter is not specified, the X and Y-coordinates are relative to the screen.
  • If this parameter corresponds to the name of a window, the X and Y-coordinates are relative to the client area of the window.
  • If this parameter corresponds to the name of a control, the X and Y-coordinates are relative to the client area of the control.
Remarks
  • The invisible controls are not returned.
  • If <Parent> is specified, the controls found at locations outside the client area are not returned.
Component: wd290obj.dll
Minimum version required
  • Version 18
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help