Table of Contents

TMS FNC Hint — Guides

HTML content

Assign any HTML string to a control's Hint property. The FNC HTML engine renders bold, italic, colour, images, and basic tables.

Button1.Hint := '<b>Save</b><br/><i>Ctrl+S</i> — saves the current file.';

Set ShowHint := True on the control and Active := True on the TTMSFNCHint component.

Appearance

Hint1.Fill.Color := $FFFFFFF0;   // pale yellow
Hint1.Stroke.Color := clGray;
Hint1.Font.Name := 'Segoe UI';
Hint1.Font.Size := 10;
Hint1.Rounding := 4;

Delay and duration

Hint1.HintPause := 600;     // ms before hint appears
Hint1.HintShortPause := 100;
Hint1.HintHidePause := 5000; // ms before auto-hide

Positioning

By default the hint appears near the mouse cursor. Override placement with OnCalculateHintRect:

procedure TForm1.Hint1CalculateHintRect(Sender: TObject; var ARect: TRectF);
begin
  // ARect is the proposed hint bounds — adjust as needed
  ARect := RectF(10, 10, 300, 60);
end;

Custom drawing

Use OnBeforeDrawHint or OnAfterDrawHint to paint additional content into the hint canvas.

See also