I'd like to create some padding to all hints shown in my Delphi 12 application. I am already setting the global HintWindowClass to a custom class derived from THintWindow, and I thought its constructor may create that padding. But everything I did so far has no effect on the hint window:
HintWindowClass := TMyHintWindow;
...
constructor TMyHintWindow.Create(AOwner: TComponent);
begin
inherited;
AlignWithMargins := True;
Margins.Left := 10;
Margins.Right := 10;
Padding.Left := 10;
Padding.Right := 10;
end;
Do I have to manipulate the canvas in some way?
.CalcHintRectand move the text rect in.Paint.