[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Changes the selected tree node on the control.
Source position: comctrls.pp line 3728
public procedure TCustomTreeView.MoveLeft( |
ASelect: Boolean = False |
); |
ASelect |
|
True if the new tree node is selected, False if it has the focus rectangle. |
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.
Added in LCL version 3.0.
|
Makes the specified node become selected in the tree view control. |
|
|
The set of options enabled in the tree view control. |
|
|
The selected tree node in the control. |
|
|
Provides indexed access to the multi-selected tree nodes in the control. |
|
|
Number of selected nodes in the tree view. |
|
|
Gets the last tree node added to a multi-selection in the Items for the controls. |
|
|
Handles key down events for the control. |
|
|
True if the current node is selected in the tree view control. |
|
|
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 - enumerated type containing the permissible values for Options in TreeViews. |
|
|
Set type used to store values from the TTreeViewOption enumeration. |
Version 3.2 | Generated 2024-02-25 | Home |