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

# TControlAtPosFlag

Flags for finding a control at a given (client) position.

## Declaration

Source position: controls.pp line 2037

`type TControlAtPosFlag = (`
`capfAllowDisabled,` |  | Include disabled controls when set.
`capfAllowWinControls,` |  | Include both TWinControls and TControl instances when set.
`capfOnlyClientAreas,` |  | Checks for hits are limited to the client area when set.
`capfRecursive,` |  | Recurse into grand-children controls when set.
`capfHasScrollOffset,` |  | Scroll offset is already included in the coordinates when set.
`capfOnlyWinControls` |  | Include only TWinControls (and ignore TControls) when set.
`);`

## Description

TControlAtPosFlag is an enumeration type with values that indicate the mechanism used to locate a control at a given client position.

Values from the enumeration are stored in the TControlAtPosFlags type.

TControlAtPosFlag enumeration values are used in the implementation of the ControlAtPos method in TWinControl, and in the FindControlAtPosition function.

## See also

TWinControl.ControlAtPos |  | Get the child control at the given client position.
FindControlAtPosition |  | Gets the control at the specified screen position.