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

# THitTest

Represents permissible results for a hit test.

## Declaration

Source position: comctrls.pp line 41

`type THitTest = (`
`htAbove,` |  | The action was above the coordinates for the control.
`htBelow,` |  | The action was below the coordinates for the control.
`htNowhere,` |  | The action was not near the control checking for the event.
`htOnItem,` |  | The action was on the control checking for the event.
`htOnButton,` |  | The action was on a button in the control.
`htOnIcon,` |  | The action was on the icon for an item.
`htOnIndent,` |  | The action was in the indent area prior to an expand/collapse indicator.
`htOnLabel,` |  | The action was on the display label for an item.
`htOnRight,` |  | The action was on the right edge of the display area for an item.
`htOnStateIcon,` |  | The action was on the state icon for an item.
`htToLeft,` |  | The action was to the left of the display area for an item.
`htToRight` |  | The action was to the left of the display area for an item.
`);`

## Description

THitTest is an enumerated type with values that represent permissible results for a hit test (position of a mouse click relative to objects on a form). Values from THitTest are stored in the THitTests set type.

## See also

THitTests |  | Set type used to store values from the THitTest enumeration.