Sign in Join
FPDoc Onlineexperiment

TWinControl.ControlAtPos function

Member of TWinControlpublicIn unit Controls

Get the child control at the given client position.

Declaration

pascal
function ControlAtPos(const Pos: TPoint; AllowDisabled: Boolean)
: TControl
function ControlAtPos(const Pos: TPoint; AllowDisabled: Boolean; 
 AllowWinControls: Boolean): TControl
function ControlAtPos(const Pos: TPoint; Flags: TControlAtPosFlags)
: TControl; virtual

Arguments

Pos

The client coordinates.

AllowDisabled

Allow finding disabled controls.

AllowWinControls

Allow finding TWinControls, in addition to TControls.

Flags

Encoded Allow... conditions.

Function result

The found control, Nil if none found.

Description

WinControls are found before Controls (if overlapping).

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.