Sign in Join
FPDoc Onlineexperiment

TCustomTreeView.NodeHasChildren function

Member of TCustomTreeViewprotectedIn unit ComCtrls

Determines if the specified tree node has child nodes.

Declaration

pascal
function NodeHasChildren(Node: TTreeNode): Boolean; virtual

Arguments

Node

Tree node examined in the method.

Function result

True if the node has child nodes. False if OnHasChildren has not been assigned.

Description

NodeHasChildren is a Boolean function used to determine if the tree node specified in Node has child nodes. NodeHasChildren signals the OnHasChildren event handler (when assigned) to determine the return value for the method. The return value is False if OnHasChildren has not been assigned.

NodeHasChildren is called when a tree node reads the value for its HasChildren property. The TTreeNode instance uses an existing value in its States flags when available. If not set, NodeHasChildren is used to determine if the flag value (nsHasChildren) is included in or excluded from the States property in the tree node.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.