[Lazarus] New AutoSize issue

Mattias Gaertner nc-gaertnma at netcologne.de
Thu May 20 18:56:31 CEST 2010


On Thu, 20 May 2010 18:22:45 +0200
faber <faber.cpu at gmail.com> wrote:

> I wonder the bad sequence (order):
> my code
>  debugln('set sr1 to visible true');
>    SR1.Visible:=true;
>    SG1.Visible:=false;
>    if Assigned(SR1) AND SR1.Visible then begin
>       OptsR.Parent:=SR1;
>       OptsR.Top:=1;
>       OptsR.Left:=11;
>       OptsR.ArrowType:=atDown;
>       OptsR.Height:=19;
>       OptsR.Width:=19;
>       OptsR.Visible:=true;
>    end;
>    StopA.Visible:=false;
> 
> and debug:
>    hide StopA
>    debugln('set sr1 to visible true');
>    hide :TStringGrid1 --- SG1 ?
>    debug from onresize
>    show Arrow
>    show SR1
> 
> 
> why show SR1 is on the end ? In code I set SR1 to visible at the beginning.

When autosizing is delayed then changes to Visible are delayed too
(for example via DisableAlign/EnableAlign). When the autosizing is
enabled again all changes are applied. Hide comes before Show.


Mattias




More information about the Lazarus mailing list