Sign in Join
FPDoc Onlineexperiment

TCustomTreeView.ShowLines property

Member of TCustomTreeViewprotectedIn unit ComCtrls

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

Declaration

pascal
property 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

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