[WayBack] Tweaking4All.com – Topics – Delphi – How to change the font of a hint window: Delphi THintWindow are odd, as you cannot set the Vcl.Forms.HintWindowClass before uses it to initialise the hint window in the Application instance from the initialisation section in the Vcl.Forms unit.
The only way to change it is to:
- Set the
HintWindowClassto a new class - Toggle the state of
Application.ShowHint
So the duplicate line below is no accident:
HintWindowClass := TMyHintWindow; Application.ShowHint := not Application.ShowHint; Application.ShowHint := not Application.ShowHint;
References:
- [WayBack] Forms.HintWindowClass Variable
- [WayBack] THintWindow Class
- [WayBack] TApplication.ShowHint Property
–jeroen





