TControl.Hint property
The text to show in the Hint window for the control.
Declaration
property Hint: TTranslateString read FHint write SetHint;Description
Hint is a TTranslateString property with hint text displayed in a pop-up window when the mouse is hovered over the control. The pop-up window is displayed when the ShowHint property is set to True.
Assign a value to Hint to describe the usage or formatting conventions used for the value entered in the control. For example:
Edit1.Hint := 'Start Date in MM/DD/YYYY format';
Hint can be given a value that includes both short and long variants of the hint text. The values are separated by a '|' (Vertical Bar) character in the property. For example:
Edit1.Hint := 'Start Date | Start Date in MM/DD/YYYY format';
The short variant is used in the pop-up hint window for the control. The long variant is assigned to the Application.Hint property, or displayed on a form status bar when its AutoHint property is set to True.
As a TTranslateString type, Hint can be localized using the translation facilities built into the LCL and the Lazarus IDE. The property value is written using LCL component streaming when the hint text for the control is not linked to an assigned Action.
See also
An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.
