Hello,
i derived a class from THintWindow and changed the Canvas.Font in it's Constructor. The Constructor gets called but the apperance didn't change. Even Changing the color makes no difference. What am i doing wrong here?
TsusHintWindow = class(THintWindow)
constructor Create(AOwner: TComponent); override;
end;
constructor TsusHintWindow.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
with Canvas.Font do begin
Name := 'Courier New';
Size := 10;
end;
end;
procedure TEditorFile.ShowHint(Sender: TObject; HintInfo: PHintInfo);
begin
HintInfo^.Hint := '----|----1----|----2----|----3'+chr(10)+'abcdefghijklmnopqrsyvw';
HintInfo^.HintWindowClass := TsusHintWindow;
end;