Sign in Join
FPDoc Onlineexperiment

TCustomTreeView.HotTrack property

Member of TCustomTreeViewprotectedIn unit ComCtrls

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

Declaration

pascal
property 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. When enabled, the text for the hovered tree node is drawn using an underline drawing style and the optional HotTrackColor defined for the control. 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

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