TCustomTreeView.GetHitTestInfoAt function
Returns hit test results for the specified coordinates.
Declaration
function GetHitTestInfoAt(X: Integer; Y: Integer): THitTestsArguments
X | Horizontal coordinate examined in the method. |
Y | Vertical coordinate examined in the method. |
Function result
Set of THitTest values for the node at the specified coordinates.
Description
GetHitTestInfoAt is a THitTests function used to gather hit test
results for the coordinates specified in X and Y. The return value indicates
the part(s) of a node on the tree view control beneath the given coordinates.
The results are an empty set if none of the THitTest values apply to the
specified position (Such as when X, Y is not within the client area for the
control).
In the current implementation, the following THitTest enumeration values are used:
- htOnItem
- The position is over a node on the tree view control.
- htOnIndent
- The position is over the indent prior to a node.
- htOnButton
- The position is over an expand / collapse indicator for a tree node.
- htOnStateIcon
- The position is over the state icon for a tree node.
- htOnIcon
- The position is over the main icon for a tree node.
- htOnLabel
- The position is over the text displayed for a tree node.
- htNowhere
- The position is over a part of a node which does not qualify for the previous values.
The following THitTest values are not used in the current implementation: htAbove, htBelow, htOnRight, htToLeft, and htToRight.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
