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

Mattias Gaertner nc-gaertnma at netcologne.de
Mon Jan 18 12:23:35 CET 2010


On Mon, 18 Jan 2010 12:16:33 +0100
zeljko <zeljko at holobit.net> wrote:

> 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




More information about the Lazarus mailing list