Skip to main content

TdxCustomOrgChart.GetHitTestsAt(Integer,Integer) Method

Identifies to which control’s element the inspected point belongs.

Declaration

function GetHitTestsAt(X: Integer; Y: Integer): TdxOcHitTests;

Parameters

Name Type
X Integer
Y Integer

Returns

Type
TdxOcHitTests

Remarks

The corresponding flag is present in the function’s result if the point whose coordinates are passed as the X and Y parameters, is:

Value

Description

htNowhere

Located in an empty portion of the client area.

htOnLeftIndentX

  • Near the node‘s left border;

  • Near the control’s left border or – the point is located at the right half of the area that separates two siblings.

htOnRightIndentX

  • Near the node’s right border;

  • Near the control’s right border or – the point is located at the left half of the area that separates two siblings.

htOnIndentY

  • Near the node’s topmost border;

  • Near the control’s topmost border or – if the current node has children.

htUnder

  • Below the node’s lowest border;

  • Near the node’s expand button or – if the current node has no children.

htOnRect

htOnShape

Within the node’s shape, and thus within the bounding rectangle (htOnRect).

htOnButton

Within the node’s expand button.

See Also