[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'ComCtrls' (#lcl)

TCustomTreeView.HotTrack

Enables or disables highlight / underline drawing styles on a tree item when the mouse is hovered over it.

Declaration

Source position: comctrls.pp line 3656

protected property TCustomTreeView.HotTrack : Boolean
  read GetHotTrack
  write SetHotTrack
  default False;

Description

HotTrack is a Boolean property which controls whether a hot-tracking highlight is drawn for the tree node under the mouse cursor. The default value for the property is False and disables hot-track highlighting on the control.

The property value is read from and written to the Options property for the control; the value tvoHotTrack is included in or excluded from Options based on the property value. Setting HotTrack to True causes tvoHotTrack to be included in the Options property.

HotTrack is used in methods like DoPaintNode, MouseLeave, and MouseMove.

Use HotTrackColor to set the font color used to draw the hot-tracked tree node. Theme element details are used to get the background color for a hot-tracked tree node.

See also

TCustomTreeView.Options

  

The set of options enabled in the tree view control.

TCustomTreeView.MouseMove

  

Handles mouse move messages for the control.

TCustomTreeView.MouseLeave

  

Performs actions needed when the mouse pointer leaves the control.

TCustomTreeView.DoPaintNode

  

Renders the specified tree node to the canvas for the control.

TCustomTreeView.DoPaint

  

Implements the Paint method for the control.

TTreeViewOption

  

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

TTreeViewOptions

  

Set type used to store values from the TTreeViewOption enumeration.

TCustomListView.HotTrack

  

Enables or disables hot tracking selection when the mouse is hovered over an item.


Version 4.0 Generated 2025-05-03 Home