TWinControl.ControlAtPos function
Get the child control at the given client position.
Declaration
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; virtualArguments
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.
