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

TCustomTreeView.MoveLeft

Changes the selected tree node on the control.

Declaration

Source position: comctrls.pp line 3728

public procedure TCustomTreeView.MoveLeft(

  ASelect: Boolean = False

);

Arguments

ASelect

  

True if the new tree node is selected, False if it has the focus rectangle.

Description

MoveLeft is a method used to change the selected tree node on the control by moving towards the left (or upwards) in the node hierarchy. The action normally results in the Parent node becoming the selected tree node.

The behavior in MoveLeft is influenced by the settings in the Options property and the value in the ASelect argument.

ASelect indicates whether the new node becomes a Selected node on the tree view control (when True) or simply has the focus rectangle (when False).

If multi-selections are enabled in Options (using tvoAllowMultiSelect), the movement starts from the last node in the multi-selection range. Otherwise the Selected node is used to start the movement.

Prior to changing the active node, an Expanded node is collapsed (when assigned). If the Parent node has been assigned, it becomes the target for the movement. The MoveSelection method is called to change to the specified node and set its Selected (or MultiSelected) attributes to the value in ASelect.

MoveLeft is used in the KeyDown method for the control.

Version info

Added in LCL version 3.0.

See also

TCustomTreeView.MoveSelection

  

Makes the specified node become selected in the tree view control.

TCustomTreeView.Options

  

The set of options enabled in the tree view control.

TCustomTreeView.Selected

  

The selected tree node in the control.

TCustomTreeView.Selections

  

Provides indexed access to the multi-selected tree nodes in the control.

TCustomTreeView.SelectionCount

  

Number of selected nodes in the tree view.

TCustomTreeView.GetLastMultiSelected

  

Gets the last tree node added to a multi-selection in the Items for the controls.

TCustomTreeView.KeyDown

  

Handles key down events for the control.

TTreeNode.Selected

  

True if the current node is selected in the tree view control.

TTreeNode.MultiSelected

  

Indicates whether the node is one of several nodes selected simultaneously (e.g. using the Shift or Ctrl key while selecting on a tree view control).

TTreeViewOption

  

TTreeViewOption - enumerated type containing the permissible values for Options in TreeViews.

TTreeViewOptions

  

Set type used to store values from the TTreeViewOption enumeration.


Version 3.2 Generated 2024-02-25 Home