TMyHintWindow = class(THintWindow)
constructor Create(AOwner: TComponent); override;
end;
procedure TForm1.FormCreate(Sender: TObject);
begin
//Custom Hint Font
HintWindowClass := TMyHintWindow;
Application.ShowHint := True;
//设置停留多久出现HINT.
application.HintPause := 5000;
//设置多久后消失
application.HintHidePause := 3000;
end;
constructor TMyHintWindow.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
with Canvas.Font do
begin
Name := 'Arial';
Size := Size + 5;
Style := [fsBold];
end;
Canvas.Brush.Color := clwhite;
end;