Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2010-01

TextStyle.Layout and "Argument can't be assigned to"

4 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

zeljko
to Zaher Dirkey
Zaher Dirkey wrote 14 lines
I have this error In my component Error: Argument can't be assigned to FPC 2.4.0 {$mode objfpc}{$H+} with Canvas do begin TextStyle.Layout := tlCenter; TextStyle.Alignment := taCenter; end; How to resolve it?
does this work ?
with Canvas.TextStyle do
begin
  Layout := XXX;
  Alignment := XXX;
end;
Thanks in advances

Reply by email

Mattias Gaertner
to zeljko: does this work ? with Canvas.TextStyle do begin Layout := XXX; Alignment := XXX; end;
Show quoted text 22 lines
On Monday 18 January 2010 12:02, Zaher Dirkey wrote: > I have this error In my component > Error: Argument can't be assigned to > > FPC 2.4.0 > > {$mode objfpc}{$H+} > > with Canvas do > begin > TextStyle.Layout := tlCenter; > TextStyle.Alignment := taCenter; > end; > > How to resolve it? does this work ? with Canvas.TextStyle do begin Layout := XXX; Alignment := XXX; end;

no

Mattias

Reply by email