Sign in Join
FPDoc Onlineexperiment

TListView.ToolTips property

Member of TListViewpublishedIn unit ComCtrls

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

Declaration

pascal
property ToolTips:;

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.

This description is the one of ComCtrls.TCustomListView.ToolTips.

See also

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