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

# TCustomListView.ToolTips

Indicates if a hint (tool tip) is automatically displayed for the list item under the mouse cursor.

## Declaration

Source position: comctrls.pp line 1600

`protected property TCustomListView.ToolTips : Boolean index Ord(lvpToolTips) read GetProperty write SetProperty default True;`

## Description

ToolTips is a Boolean property which enables or disables display of a tool tip or hint window when the mouse pointer is hovered over a list item on the control. The default value for the property is True, and allows the tool tip to be displayed.

Use the Hint property for the text displayed in the hint window. Or, use the OnShowHint event handler to assign a custom value. For example:

    procedure TForm1.ListView2ShowHint(Sender: TObject; HintInfo:
    PHintInfo);
    begin
    HintInfo^.HintStr := 'This is the hint for ' + Sender.ClassName;
    end;

ToolTips 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.

## See also

TCustomListView.HoverTime |  | Time (in milliseconds) that the mouse cursor must hover over an item before its tool tip is shown.
TCustomListView.OnDataHint |  | Event handler signalled to load a range of cached list items in the virtual storage for the control.
TControl.Hint |  | The text to show in the Hint window for the control.
TControl.OnShowHint |  | Event handler signalled when a hint window is displayed for the control.
TListViewProperties |  | Set type used to store values from the TListViewProperty enumeration.
TListViewProperty |  | Represents Boolean properties used in TCustomListView.