isa
isa

Reputation: 1085

Right to left text in delphi trayicon BaloonHint

Is there a way to align text right in the delphi trayicon BaloonHint?

Upvotes: 0

Views: 743

Answers (1)

Osama Al-Maadeed
Osama Al-Maadeed

Reputation: 5695

You would need to use your own hint window

type
 TRTLHint = class(THintWindow)
 protected
    procedure CreateParams(var Params: TCreateParams); override;
 end;

procedure TRTLHint.CreateParams(var Params: TCreateParams);
begin
  inherited;
  Params.ExStyle := Params.ExStyle or WS_EX_LAYOUTRTL;
end;

You can then use this TRTLHint in this way.

Upvotes: 1

Related Questions