[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 1967

type TControlAtPosFlag = (

  capfAllowDisabled,

  

If set: include disabled controls.

  capfAllowWinControls,

  

If set: include TWinControls, in addition to TControls.

  capfOnlyClientAreas,

  

If set: hit client areas only.

  capfRecursive,

  

If set: recurse into grand children.

  capfHasScrollOffset,

  

If set: scroll offset is already included in the coordinates.

  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.

capfAllowDisabled
Include disabled controls
capfAllowWinControls
Do not find WinControls if False
capfOnlyClientAreas
Hit client areas only
capfRecursive
Search in child controls
capfHasScrollOffset
Scroll offset is already included in the coordinates
capfOnlyWinControls
Include only TWinControls (ignore TControls)

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.

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