[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Controls' (#lcl)

TWinControl.ControlAtPos

Returns the child control at the specified client coordinates.

Declaration

Source position: line 0

public function TWinControl.ControlAtPos(

  const Pos: TPoint;

  AllowDisabled: Boolean

):TControl;

function TWinControl.ControlAtPos(

  const Pos: TPoint;

  AllowDisabled: Boolean;

  AllowWinControls: Boolean

):TControl;

function TWinControl.ControlAtPos(

  const Pos: TPoint;

  Flags: TControlAtPosFlags

):TControl;

Description

capfHasScrollOffset: Take into account scroll offset of scrollable wincontrol. (when not???) capfWinControls: skip wincontrols if False (when???) capfRecursive: find child of wincontrol WinControls are found before Controls (if overlapping).

The latest version of this document can be found at lazarus-ccr.sourceforge.net.