[Overview][Types][Classes][Procedures and functions][Index] Reference for unit 'ShellCtrls' (#lcl)

TCustomShellTreeView.ExpandCollapseMode

Controls the actions performed when a tree node is expanded or collapsed on the control.

Declaration

Source position: shellctrls.pas line 118

protected property TCustomShellTreeView.ExpandCollapseMode : TExpandCollapseMode
  read FExpandCollapseMode
  write FExpandCollapseMode
  default ecmRefreshedExpanding;

Description

ExpandCollapseMode is a TExpandCollapseMode property which determines the actions performed when a tree node is expanded or collapsed on the tree view control. The default value for the property is ecmRefreshedExpanding. This value causes the child nodes for a given tree node to be deleted and recreated when the node is expanded.

See TExpandCollapseMode for the other values allowed in the property, and the corresponding actions performed in the tree node.

ExpandCollapseMode is used in the CanExpand and Collapse methods.

Version info

Added in LCL version 3.0.

See also

TCustomShellTreeView.CanExpand

  

Determines if the specified tree node can be expanded in the shell tree view control.

TCustomShellTreeView.Collapse

  

Removes child nodes (if needed) when the specified tree node is collapsed.

TCustomShellTreeView.PopulateTreeNodeWithFiles

  

Adds tree nodes for file system objects found starting at the specified node / path.

TExpandCollapseMode

  

Indicates actions performed for child nodes when a shell tree node is expanded or collapsed.

TTreeNode.Collapse

  

Collapses the current tree node, and optionally collapses any descendent nodes.

TTreeNode.Expand

  

Expands the current tree node, and optionally all descendent nodes.


Version 4.0 Generated 2025-05-03 Home