views:

147

answers:

1

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

+1  A: 

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.

Osama ALASSIRY