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

zeljko zeljko at holobit.net
Mon Jan 18 12:16:33 CET 2010


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;
 

>
> Thanks in advances




More information about the Lazarus mailing list