Sign in Join
FPDoc Onlineexperiment

TShellTreeView.OnCollapsed property

Member of TShellTreeViewpublishedIn unit ShellCtrls

Event handler signalled when a tree node has been collapsed on the control.

Declaration

pascal
property OnCollapsed:;

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.

This description is the one of ComCtrls.TCustomTreeView.OnCollapsed.

See also

  • Collapse
  • CanCollapse
  • OnCollapsing
  • Expand
  • OnExpanded
  • Expanded

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