Vcl.ComCtrls.THitTest

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

THitTest = (htAbove, htBelow, htNowhere, htOnItem, htOnButton, htOnIcon,
htOnIndent, htOnLabel, htOnRight, htOnStateIcon, htToLeft, htToRight);

C++

enum DECLSPEC_DENUM THitTest : unsigned char { htAbove, htBelow, htNowhere, htOnItem, htOnButton, htOnIcon, htOnIndent, htOnLabel, htOnRight, htOnStateIcon, htToLeft, htToRight };

Properties

Type Visibility Source Unit Parent
enum public
Vcl.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls Vcl.ComCtrls

Description

THitTest and THitTests are used in the GetHitTestInfoAt method.

THitTests is a set of THitTest values. THitTest can have any of the following values:


Value Means the point is

htAbove

Above the client area

htBelow

Below the client area

htNowhere

Inside the control, but not on an item

htOnItem

On an item, its text, or its bitmap

htOnButton

On a button

htOnIcon

On an icon

htOnIndent

On the indented area of an item

htOnLabel

On a label

htOnRight

On the right side of an item

htOnStateIcon

On a state icon or bitmap associated with an item

htToLeft

To the left of the client area

htToRight

To the right of the client area

Code Examples