Vcl.Controls.TCustomHint

From RAD Studio API Documentation
Jump to: navigation, search

System.Classes.TComponentSystem.Classes.TPersistentSystem.TObjectTCustomHint

Delphi

TCustomHint = class(TComponent)

C++

class PASCALIMPLEMENTATION TCustomHint : public System::Classes::TComponent

Properties

Type Visibility Source Unit Parent
class public
Vcl.Controls.pas
Vcl.Controls.hpp
Vcl.Controls Vcl.Controls

Description

Custom hint component added to a control.

A TCustomHint component can be associated with a control to specify the appearance of the control's hint. The hint's text is a property of the control itself, not of TCustomHint.

Hints are given in the themed style for Vista, Windows 7, or later Windows operating systems, in the Vista style on XP (themes enabled), or in the XP style on XP (themes disabled).

Hints do processing in a background task, so that applications do not pause while hints are painting. Images associated with a hint are specified by a TImageList in the Images property. You can configure the time the mouse moves over the control before the hint appears (using Delay). You can also configure how long the hint stays displayed while the mouse is over the control (using HideAfter). The Style property configures differently shaped hints.

A control's custom hint is in its CustomHint property. A control also has a ParentCustomHint property. If ParentCustomHint is True and its parent uses a custom hint, the control uses its parent's hint when its ParentShowHint property is also True. A single TCustomHint instance can be used by more than one control.

See Also