Sign in Join
FPDoc Onlineexperiment

TTreeViewOption enumeration

In unit ComCtrls

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

Declaration

pascal
TTreeViewOption = (tvoAllowMultiselect,tvoAutoExpand,tvoAutoInsertMark,
 tvoAutoItemHeight,tvoHideSelection,tvoHotTrack,
 tvoKeepCollapsedNodes,tvoReadOnly,
 tvoRightClickSelect,tvoRowSelect,tvoShowButtons,
 tvoShowLines,tvoShowRoot,tvoShowSeparators,
 tvoToolTips,tvoNoDoubleClickExpand,tvoThemedDraw,
 tvoEmptySpaceUnselect)

Description

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

Values

tvoAllowMultiselectAllows selection of several tree-items, e.g. using Ctrl+click and Shift+click. Has the same affect as setting the MultiSelect property to True.
tvoAutoExpandAutomatically expands child nodes for a tree-item when user clicks it, or the item is activated by code. Has the same affect as setting the AutoExpand property to True.
tvoAutoInsertMarkAllows painting a horizontal line below a tree-item under cursor when mouse moves. Good for drag-drop.
tvoAutoItemHeightDetect height of a tree-item based on current font and icons.
tvoHideSelectionIf a control looses focus, then don't paint selection for selected tree-item. Same as HideSelection property.
tvoHotTrackAdditionally highlight/underline a tree-item when mouse is over it. Same as HotTrack property.
tvoKeepCollapsedNodesWhen some items change, keep previously folded tree-items in folded state.
tvoReadOnlyDon't allow to change item captions by clicking on items with a delay. Same as ReadOnly property.
tvoRightClickSelectRight-click also selects a tree-item. Otherwise it only calls PopupMenu. Same as RightClickSelect property.
tvoRowSelectWhen a tree-item is selected, paint selection background with full width. Same as RowSelect property.
tvoShowButtonsShow expand/collapse (fold/unfold) icons at left side for nodes with sub-nodes. Same as ShowButtons property.
tvoShowLinesShow vertical lines at left side which paint tree structure for nested nodes. Same as ShowLines property.
tvoShowRootShow the root tree-item which is always present in code but may be hidden for user. Same as ShowRoot property.
tvoShowSeparatorsShow horizontal lines below all tree-items.
tvoToolTipsShow tooltip (hint) for a tree-item when the item is too long to fit by width and mouse is over it. Same as ToolTips property.
tvoNoDoubleClickExpandPrevents toggling the expanded state for the tree view item when it is double clicked.
tvoThemedDrawTree view item is drawn using settings from theme services.
tvoEmptySpaceUnselectIndicates if empty space can be be drawn below unselected items in the tree view.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.