The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

    • RT @Bdankt: Je plaatst een tweetje over je tweede verjaardag in zelfisolatie. Je krijgt de liefste, leukste, positieve reacties. En dan heb… 1 hour ago
    • @Gerhardhormann Je mist de belangrijkste: geluk. 1 hour ago
    • @floschechter I hate autocorrect for not correcting things it should and correcting things it shouldn't. 1 hour ago
    • RT @DanielTuijnman: Grappig hoe zo veel antivaxxers dat proberen te verhullen en om het hardste schreeuwen dat ze niet tegen vaccinatie zij… 1 hour ago
    • RT @Gossinki: Mensen uit STEENDAM en TJUCHEM melde u! Schade door menselijk veroorzaakte aardbevingen staat centraal in mijn studie de kom… 2 hours ago
  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 2,284 other followers

Tweaking4All.com – Topics – Delphi – How to change the font of a hint window

Posted by jpluimers on 2020/01/19

[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:

  1. Set the HintWindowClass to a new class
  2. 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:

–jeroen

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

 
%d bloggers like this: