TCustomListView.HotTrack property
Enables or disables hot tracking selection when the mouse is hovered over an item.
Declaration
property HotTrack: Boolean index Ord(lvpHotTrack) read GetProperty write SetProperty default False;Description
HotTrack is a
Boolean property used to enable or
disable the hot tracking selection feature for the items in the list view
control. HotTrack is one of the extended list view styles represented by the
LVS_EX_TRACKSELECT constant.
When enabled, a list item is automatically selected (or de-selected) when the mouse pointer is hovered over a list item for a short period of time. It can be used in MultiSelect mode when the Shift, Ctrl, or Shift+Ctrl keys are held while moving and hovering the mouse pointer.
HotTrack is one of the TListViewProperty values included in the TListViewProperties set type and exchanged with the widgetset class. The property value is read from and written to the TCustomTreeview widgetset class instance when its handle is valid. Changing the value for the property causes the widgetset class to be updated with the new value.
Use HoverTime to specify the hover duration (in milliseconds) before a list item toggles its selected state.
Use HotTrackStyles to set the cursor shape or font attributes for hot tracked items in the control.
This feature can be used in List View and in Tab controls.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
