- This set is used in TTreeNode.InternalMove and TTreeNodes.InternalAddObject. + TAddMode is the type passed as an argument to methods in TTreeNode and TTreeNodes.
+ TMultiSelectStyles is an enumerated type with values representing the multi-select options available in TCustomTreeView and TTreeView. The values control the tree nodes and their manner of selection in a multi-selection. +
++ Values from TMultiSelectStyles are stored in the TMultiSelectStyle set type, and used to implement the MultiSelectStyle property in TCustomTreeView. +
+
AutoExpand is a Boolean property which indicates if a tree node is automatically expanded when it is Selected using a mouse click or keyboard navigation. The default value for the property is False.
@@ -24768,7 +24783,7 @@ AToolbar.ButtonHeight := 30;
@@ -24872,9 +24887,40 @@ AToolbar.ButtonHeight := 30;
+ OnAdvancedCustomDraw is a TTVAdvancedCustomDrawEvent property with the event handler signalled to paint the grid control. It is signalled (when assigned) from the CustomDraw method, and occurs when the control executes its Paint method.
+
+ Drawing Stages
+
+ Use OnCustomDraw to paint the control when the drawing stage is cdPrePaint.
+
+ Use IsCustomDrawn to determine if a handler routine has been assigned to an event handler for a specific drawing target (the control or its items).
+
+ OnChanging is a TTVChangingEvent property with the event handler signalled prior to changing the selected node on the tree view control. It allows an application to determine whether the new tree node can become the selected node for the control.
+
+ Node is the tree node to examine in the handler routine.
+
+ Set the AllowChange argument to True to allow the tree node to be the selected node on the control.
+
+ OnChanging is signalled from the CanChange method, and occurs when a new value is assigned to the Selection property.
+
+ Changing the Text or Data of a node will sort again. While adding nodes does not. Call TreeView1.AlphaSort to sort the whole tree. Call ParentNode.CustomSort(nil) to sort only the child nodes of a single node.
+
+
+
+ Uses the value from the internal member maintained in TTreeNodes. GetFirstMultiSelected is available when tvoAllowMultiSelect has been included in the Options for the control. +
++ Uses the value from the internal member maintained in TTreeNodes. GetLastMultiSelected is available when tvoAllowMultiSelect has been included in the Options for the control. +
+Select is an overloaded method used to make a node, array of nodes, or list of nodes become selected in the tree view control.
++ The overloaded variant with a TShiftState value allows the specified node to be added to the existing multi-selection when Shift contains ssCtrl. If Shift does not include ssCtrl, ClearSelections is called prior to storing the node in Selected. +
++ The variants which accept either an array or a list of nodes always call ClearSelections to reset the selected state for multi-selected nodes. The first TTreeNode instance in either is stored in Selected. When tvoAllowMultiSelect has been included in Options, the Selected property in each of the tree nodes is set to True. +
++ Use ClearSelections to reset the state for any selected nodes on the tree view control. +
+ SelectionVisible is a Boolean function which indicates whether the selected tree node(s) for the control are in its visible display area. SelectionVisible checks both multi-selections and a single selection on the control. +
++ For multi-selections, the GetFirstMultiSelected and GetNextMultiSelected methods are called to visit each of the tree nodes. The return value is set to True when the first tree node with its IsVisible property set to True is found. +
++ When Items does not contain multi-selections, the value in Selected is used. The return value is True when the IsFullHeightVisible property in the tree node is set to True. +
++ SelectionVisible is used in the MakeSelectionVisible method and controls whether the MakeVisible method is called for the first tree node in a selection. +
+
Contains the same value as the Color property.
@@ -25835,7 +25930,10 @@ AToolbar.ButtonHeight := 30;
- The default value for the property is 0 in TCustomTreeView.
+ The default value for the property is 0 in TCustomTreeView. Changing the value for the property causes a CM_BORDERCHANGED control message to be performed.
+
+ BorderWidth is used when a tree node in Items calculates its display rectangle. It provides the value for the Left member in the TRect instance. It is used when expand/collapse indicators are displayed for the control. It is also used when the bounds rectangle for the Editor on the control is calculated.
- See TTreeNodes for more information about the properties and methods in the container class.
+ See TTreeNodes for more information about the properties and methods in the container class.
+ KeepCollapsedNodes is a Boolean property which indicates whether a tree node keeps its child nodes when the node is collapsed. When set to False (the default value), a tree node will free it child nodes when the node is collapsed. +
++ KeepCollapsedNodes is assigned to the corresponding property in Items, and made available to TTreeNode instances in the container using their Owner property. +
++ Changing the property value causes Options and Items to be updated. When set to True, tvoKeepCollapsedNodes is included in Options. Otherwise, tvoKeepCollapsedNodes is excluded from Options. The new value for the property is assigned to the KeepCollapsedNodes property in Items. +
++ KeepCollapsedNodes is used in the DoExpand method in TTreeNode when the node is being collapsed. +
++ MultiSelectStyle is a TMultiSelectStyle property which contains multi-selection options enabled for the tree view control. Values in the set type determine which nodes are available to be multi-selected, and the keys used to select them. The default value for the property is defined in the DefaultMultiSelectStyle constant, and enables use of the Ctrl key to add a tree node to a multi-selection. +
++ See TMultiSelectStyles for the available values and their meanings. +
++ Changing the value in MultiSelectStyle causes the new property value to be validated. If an empty set ([]) is assigned, the default value in DefaultMultiSelectStyle is used instead. There must be at least one TMultiSelectStyles enumeration value in the set type. +
++ Use the Options property to enabled multi-selection by including the value tvoAllowMultiselect. +
++ Values in MultiSelectStyle are used when the MouseDown method handles a click on the text or icon for a tree node. +
++ SelectionColor is a TColor property with the color used to paint the background for the selected tree node. The default value for the property is clHighlight. Changing the value for the property causes the control to be redrawn. +
++ SelectionColor is not currently used in the TCustomTreeView implementation. +
++ Not used in the current LCL implementation. There is a SelectionFontColor property available in the Delphi VCL. +
+