TCustomTreeView.MoveLeft procedure
Changes the selected tree node on the control.
Declaration
procedure 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.
Added in LCL version 3.0.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
