Unit 'Controls' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#lcl]

FindLCLControl

Returns the TControl currently visible at the specified screen position.

Declaration

Source position: controls.pp line 2720

function FindLCLControl(

  const ScreenPos: TPoint

):TControl;

Arguments

ScreenPos

  

TPoint instance with the screen coordinates for the control located in the method.

Function result

Control visible at the specified screen coordinates. The active windowed control (or form) is returned if a control is not found at the specified position.

Description

The result is not reliable during resizing.



CT Web help

CodeTyphon Studio