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

TCustomTreeView.ShowButtons

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

Declaration

Source position: comctrls.pp line 3678

protected property TCustomTreeView.ShowButtons : Boolean
  read GetShowButtons
  write SetShowButton
  default True;

Description

ShowButtons is a Boolean property which indicates whether an expand / collapse (fold) indicator is drawn for a tree node which has child nodes. The default value for the property is True, and causes an indicator to be drawn for qualified tree nodes.

ShowButtons is a convenience property; its value is read from and written to the Options for the control. When set to True, the value tvoShowButtons is included in the Options property. When set to False, tvoShowButtons is excluded from Options. Changing the value for the property causes the control to be redrawn.

ShowButtons is used during the paint process in the DoPaintNode method.

See also

TCustomTreeView.Options

  

The set of options enabled in 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.

TCustomTreeView.AutoExpand

  

Expands a tree node when it is clicked or activated in code.

TCustomTreeView.ShowLines

  

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

TCustomTreeView.ShowRoot

  

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

TCustomTreeView.ShowSeparators

  

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

TTreeNode.HasChildren

  

Indicates whether the tree node has child nodes.

TTreeNode.Expanded

  

True if the node has been expanded, False when collapsed.


Version 3.2 Generated 2024-02-25 Home