TCustomTreeView.OnCollapsed property
Event handler signalled when a tree node has been collapsed on the control.
Declaration
property OnCollapsed: TTVExpandedEvent read FOnCollapsed write FOnCollapsed;Description
OnCollapsed is a TTVExpandedEvent property with the event handler
signalled when a tree node has been collapsed on the tree view control. It
allows the application to perform actions needed when a tree node has been
collapsed - whether by using the fold indicator on the tree view or by setting
the Expanded property in a TTreeNode to
False.
The Sender argument contains the tree view control for the event notification.
The Node argument contains the collapsed tree node for the event.
OnCollapsed is signalled from the Collapse method, and occurs after the visibility and position in scroll bars have been updated for the control.
Use OnCollapsing to perform actions needed immediately prior to setting Expanded to False in a TTreeNode instance.
Use OnExpanded to perform actions needed when a tree node has been expanded on the tree view control.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
