On Thu, 20 May 2010 18:22:45 +0200
faber <[email protected]> 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
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus