Sign in Join
FPDoc Onlineexperiment

TControlAtPosFlag enumeration

In unit Controls

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

Declaration

pascal
TControlAtPosFlag = (capfAllowDisabled,capfAllowWinControls,
 capfOnlyClientAreas,capfRecursive,
 capfHasScrollOffset,capfOnlyWinControls)

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

Values

capfAllowDisabledInclude disabled controls when set.
capfAllowWinControlsInclude both TWinControls and TControl instances when set.
capfOnlyClientAreasChecks for hits are limited to the client area when set.
capfRecursiveRecurse into grand-children controls when set.
capfHasScrollOffsetScroll offset is already included in the coordinates when set.
capfOnlyWinControlsInclude only TWinControls (and ignore TControls) when set.

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.