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

TCustomTreeView.ShowLines

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

Declaration

Source position: comctrls.pp line 3679

protected property TCustomTreeView.ShowLines : Boolean
  read GetShowLines
  write SetShowLines
  default True;

Description

ShowLines is a Boolean property used to enable or disable drawing of lines which connect the nodes on the tree view control. When enabled, a line is drawn to connect a tree node to its parent, sibling and child nodes. Values in TreeLineColor and TreeLinePenStyle are used to draw the connector lines in the DoPaintNode method.

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

The default value for the ShowLines property is True.

See also

TCustomTreeView.Options

  

The set of options enabled in the tree view control.

TCustomTreeView.TreeLineColor

  

Color used to draw the lines which connect the nodes in the tree.

TCustomTreeView.TreeLinePenStyle

  

Style of the TPen used to draw lines used to connect nodes in the control.

TCustomTreeView.ShowButtons

  

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

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.


Version 3.2 Generated 2024-02-25 Home