[Overview][Constants][Types][Classes][Procedures and functions][Index] |
[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
TTreeView is a control that displays a hierarchical list of items
Source position: comctrls.pp line 3342
type TTreeView = class(TCustomTreeView) |
||
published |
||
|
Specifies the placement of the control inside its Parent. |
|
|
The set of anchor definitions for this control. |
|
property AutoExpand: Boolean; |
|
AutoExpand - automatically expand the tree when an item is selected |
property BorderSpacing: TControlBorderSpacing; |
|
Determines the inner and outer border spacing for this control. |
property BackgroundColor: TColor; |
|
BackgroundColor for the treeview |
property BorderStyle: TBorderStyle; |
|
Allows to show a border (line) around the control, |
property BorderWidth: TBorderWidth; |
|
Width of the Border around the control; default is zero. |
|
The background color of the control. |
|
property Constraints: TSizeConstraints; |
|
The minimal and maximal Width and Height of this control. |
property DefaultItemHeight: Integer; |
|
DefaultItemHeight - default height for items on the list |
|
The operation when the control is dragged - Drag or Dock. |
|
property DragCursor: TCursor; |
|
The cursor shape shown while the control is dragged. |
|
Allows the user to drag the control. |
|
property Enabled: Boolean; |
|
Determines whether the control reacts on mouse or keyboard input. |
property ExpandSignColor: TColor; |
|
ExpandSignColor - the colour to be used for the expand/collapse symbols |
property ExpandSignType: TTreeViewExpandSignType; |
|
ExpandSignType - the symbols to denote whether a list is expanded or collapsed; default is plus or minus |
|
The font to be used for text display in this control. |
|
property HideSelection: Boolean; |
|
HideSelection - the selected items are to be hidden |
property HotTrack: Boolean; |
|
HotTrack - the property whereby the item under the mouse pointer becomes emphasised |
property Images: TCustomImageList; |
|
The Bitmap image associated with each item in the display |
property Indent: Integer; |
|
Indent - the amount by which each successive branching level is to be indented |
property MultiSelect: Boolean; |
||
property MultiSelectStyle: TMultiSelectStyle; |
||
property ParentColor: Boolean; |
|
If true, the Color of the control will be the same as the one from the Parent. Default is true. |
property ParentFont: Boolean; |
|
If true, the Font of the control will be the same as the one from the Parent. Default is true. |
property ParentShowHint: Boolean; |
|
If true, the value of ShowHint for the control will be the same as the one from the Parent. Default is true. |
property PopupMenu: TPopupMenu; |
|
A context-sensitive menu that pops up when the right mouse button is clicked over this control |
property ReadOnly: Boolean; |
|
ReadOnly - if True, the TreeView can only be observed, and not Written to or changed. Default False |
property RightClickSelect: Boolean; |
|
RightClickSelect - if True, a Right Click selects an Item. Default False |
property RowSelect: Boolean; |
|
RowSelect - if True, a row is selected |
property ScrollBars: TScrollStyle; |
|
ScrollBars - the style of scroll bars for the treeview display |
property SelectionColor: TColor; |
|
SelectionColor - the colour to be used for the selected nodes, to distinguish them from the others |
property ShowButtons: Boolean; |
|
ShowButtons - if True, buttons are displayed |
property ShowHint: Boolean; |
|
Enables the Hint display. |
property ShowLines: Boolean; |
|
ShowLines - show the connecting lines of the tree structure |
property ShowRoot: Boolean; |
|
ShowRoot - if True, the root of the tree structure is displayed |
|
SortType - the way the items are to be sorted: None, by Data, by Text or Both |
|
property StateImages: TCustomImageList; |
|
StateImages - the list of images to denote state of the tree (expanded, contracted etc) |
|
Determines the sequence of controls, reachable when the user presses the Tab key. |
|
property TabStop: Boolean; |
|
Allows the user to navigate to this control, by pressing the Tab key. |
property Tag; |
|
|
property ToolTips: Boolean; |
|
ToolTips - if True (default), pop-up tool tips are to be shown |
property Visible: Boolean; |
|
Allows to show or hide the control, and all of its children. |
property OnAddition: TTVExpandedEvent; |
||
property OnAdvancedCustomDraw: TTVAdvancedCustomDrawEvent; |
|
OnAdvancedCustomDraw - event handler for advanced custom drawing |
property OnAdvancedCustomDrawItem: TTVAdvancedCustomDrawItemEvent; |
|
OnAdvancedCustomDrawItem - event handleer for advanced custom drawing item |
property OnChange: TTVChangedEvent; |
|
OnChange - specialised event handler for a change in the TreeView |
property OnChanging: TTVChangingEvent; |
|
OnChanging - specialised event handler while TreeView is being changed |
property OnClick: TNotifyEvent; |
|
Notification handler for mouse clicks. |
property OnCollapsed: TTVExpandedEvent; |
|
OnCollapsed - specialised event handler when part of the tree is collapsed |
property OnCollapsing: TTVCollapsingEvent; |
|
OnCollapsing - specialised event handler while part of the tree is being collapsed |
property OnCompare: TTVCompareEvent; |
|
OnCompare - specialised event handler for comparisons within the TreeView |
property OnContextPopup: TContextPopupEvent; |
|
Invoked when a context-sensitive pop-up menu is requested. |
property OnCreateNodeClass: TTVCreateNodeClassEvent; |
||
property OnCustomCreateItem: TTVCustomCreateNodeEvent; |
|
OnCustomCreateItem - event handler for custom item creation |
property OnCustomDraw: TTVCustomDrawEvent; |
|
OnCustomDraw - event handler for custom drawing |
property OnCustomDrawItem: TTVCustomDrawItemEvent; |
|
OnCustomDrawItem - event handler for custom drawing item |
property OnDblClick: TNotifyEvent; |
|
Event Handler for double mouse clicks. |
property OnDeletion: TTVExpandedEvent; |
|
OnDeletion - specialised event handler for deletion of node(s) from the tree |
property OnDragDrop: TDragDropEvent; |
|
This handler determines the action on an drop onto this control, in a drag-drop operation. |
property OnDragOver: TDragOverEvent; |
|
Event handler for a control being dragged over this control. |
property OnEdited: TTVEditedEvent; |
|
OnEdited - specialised event handler when the TreeView has been edited |
property OnEditing: TTVEditingEvent; |
|
OnEditing - event handler during the editing process |
property OnEditingEnd: TTVEditingEndEvent; |
||
property OnEndDrag: TEndDragEvent; |
|
Notification handler for the end of a dragging operation. |
property OnEnter: TNotifyEvent; |
|
Handler for control receiving the focus. |
property OnExit: TNotifyEvent; |
|
Handler for control loosing the focus. This is a good place for checking the finished user input. |
property OnExpanded: TTVExpandedEvent; |
|
OnExpanded - specialised event handler when a TreeView has been expanded |
property OnExpanding: TTVExpandingEvent; |
|
OnExpanding - specialised event handler while a TreeView is being expanded |
property OnGetImageIndex: TTVExpandedEvent; |
|
OnGetImageIndex - event handler for finding the index of an image |
property OnGetSelectedIndex: TTVExpandedEvent; |
|
OnGetSelectedIndex - event handler for finding index of selected item |
|
Handler for keyboard key pressed. |
|
property OnKeyPress: TKeyPressEvent; |
|
Handler for a character entered by the user. |
|
Handler for keyboard key released. |
|
property OnMouseDown: TMouseEvent; |
|
Event handler for mouse button going down. |
property OnMouseEnter: TNotifyEvent; |
||
property OnMouseLeave: TNotifyEvent; |
||
property OnMouseMove: TMouseMoveEvent; |
|
Event handler for mouse movement within the control. |
property OnMouseUp: TMouseEvent; |
|
Event handler for mouse button going up. |
property OnSelectionChanged: TNotifyEvent; |
|
OnSelectionChanged - event handler for a change in the selection |
property OnShowHint: TControlShowHintEvent; |
|
Event Handler when a hint shall be shown. |
property OnStartDrag: TStartDragEvent; |
|
Event handler for the start of a dragging operation. |
property OnUTF8KeyPress: TUTF8KeyPressEvent; |
|
Handler for a character entered by the user. |
property Options: TTreeViewOptions; |
|
The set of Options for displaying the tree view |
property Items: TTreeNodes; |
|
Items - the collection of TreeNodes that comprise the TreeView |
property TreeLineColor: TColor; |
|
TreeLineColor - the colour to be used for the lines showing the tree structure |
property TreeLinePenStyle: TPenStyle; |
|
TreeLinePenStyle - the pen style for drawing lines on the tree |
end; |
|
TTreeView is a control that displays a hierarchical list of items |
|
| | ||
|
TCustomTreeView - ancestor class for TTreeView |
|
| | ||
|
The base class for windowed controls which paint themselves. |
|
| | ||
|
The base class for controls which can contain other (child) controls. |
|
| | ||
|
The base class for visible controls. |
|
| | ||
|
The base class for LCL components associated with widgets. |
|
| | ||
TComponent |
||
? | ||
TObject |
Use a TTreeView to display a hierarchical list of items. Items are shown by their caption and an optional bitmap.
|
How to use StdCtrls, ComCtrls or ExtCtrls |
|
|
TCustomTreeView - ancestor class for TTreeView |