TCustomTreeView.GetNodeAt function
Searches all expanded nodes for the tree node at the specified position.
Declaration
function GetNodeAt(X: Integer; Y: Integer): TTreeNodeArguments
X | Horizontal coordinate for the node or row. |
Y | Vertical coordinate for the tree node or row. |
Function result
Visible tree node at the specified position, or Nil when a node is not found at the position.
Description
Calls GetNodeAtY to get the node which has the vertical coordinate specified in Y. The node is used as the return value for the method if the X coordinate is within the display area for the node content defined as the left edge of the state icon and the right edge of the Text for the node. The return value is Nil if a node is not found, or the coordinates are not in the usable client area for the control (ClientWidth-BorderWidth and ClientHeight-BorderWidth).
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
