Page 1 of 1
Forum

Welcome to the Tweaking4All community forums!
When participating, please keep the Forum Rules in mind!

Topics for particular software or systems: Start your topic link with the name of the application or system.
For example “MacOS X – Your question“, or “MS Word – Your Tip or Trick“.

Please note that switching to another language when reading a post will not bring you to the same post, in Dutch, as there is no translation for that post!




Share:
Notifications
Clear all

[Solved] Delphi – How to change the font of a hint window

3 Posts
2 Users
0 Likes
2,850 Views
 Hans
(@hans)
Famed Member Admin
Joined: 11 years ago
Posts: 2663
Topic starter  

Working on a little project, I needed to increase the font size of the font of hint windows (you know; those yellow boxes with hints).
This is how I managed to get it to work:

...
Type
TMyHintWindow = class(THintWindow)
constructor Create(AOwner: TComponent); override;
end;
...
constructor TMyHintWindow.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
with Canvas.Font do
begin
Name := 'Arial';
Size := Size + 3;
end;
end;
...
procedure TFrom1.FormCreate(Sender: TObject);
begin
...
HintWindowClass := TMyHintWindow;
Application.ShowHint := False;
Application.ShowHint := True;
...

   
ReplyQuote
(@benstadler)
New Member
Joined: 9 years ago
Posts: 1
 

Is there anywhere to alter or customize this portion below? Im not familiar enough with this stuff, but I have someone from xxxxx, working on it.

    Name := 'Arial';    Size := Size + 3;

   
ReplyQuote
 Hans
(@hans)
Famed Member Admin
Joined: 11 years ago
Posts: 2663
Topic starter  

I'm not sure what you mean with "altering" that portion ...

Since a link has been placed in your post, I for now assume this is spam.
If no reply follows in the next few days, this message will be removed and marked as such.


   
ReplyQuote

Like what you see and you'd like to help out? 

The best way to help is of course by assisting others with their questions here in the forum, but you can also help us out in other ways:

- Do your shopping at Amazon, it will not cost you anything extra but may generate a small commission for us,
- send a cup of coffee through PayPal ($5, $10, $20, or custom amount),
- become a Patreon,
- donate BitCoin (BTC), or BitCoinCash (BCH).

Share: