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

TCustomTreeView.ShowRoot

Enables or disables drawing the root node for the tree view control.

Declaration

Source position: comctrls.pp line 3680

protected property TCustomTreeView.ShowRoot : Boolean
  read GetShowRoot
  write SetShowRoot
  default True;

Description

ShowRoot is a Boolean property which Enables or disables drawing the root node for the tree view control.

When enabled, the root node is represented by an expand / collapse indicator which does not contain any text. Top-level nodes which have child nodes also have expand / collapse indicators when ShowRoot is enabled. When disabled, the expand / collapse indicators at the top-level of the node hierarchy are omitted and only the text for the top-level nodes is displayed. The default value for the property is True.

ShowRoot is a convenience property; its value is read from and written to the Options for the control. ShowRoot contains True when the value tvoShowRoot has been included in the Options property, and False if the value has been omitted. Changing the value for the property causes Options to be updated to include or exclude tvoShowRoot as needed for the Boolean value. The control is redrawn when the value in Options is modified.

See also

TCustomTreeView.Options

  

The set of options enabled in the tree view control.

TCustomTreeView.ShowButtons

  

Enables an expand/collapse (fold/unfold) icon for nodes with child nodes.

TCustomTreeView.ShowLines

  

Enables or disables the horizontal and vertical lines which join nodes in the tree hierarchy.

TCustomTreeView.ShowSeparators

  

Indicates whether horizontal separator lines are drawn between nodes on the tree view control.

TCustomTreeView.ExpandSignType

  

Sets the drawing style for the expand / collapse (fold/unfold) indicators for tree nodes.

TCustomTreeView.ExpandSignColor

  

Color used to paint expand / collapse (fold / unfold) indicators for tree nodes.

TCustomTreeView.ExpandSignSize

  

Size of the expand / collapse (fold / unfold) indicators for tree nodes.

TCustomTreeView.ExpandSignWidth

  

Width of the lines drawn for the expand/collapse indicator when using the tvestAngleBracket drawing style.


Version 3.2 Generated 2024-02-25 Home