[Lazarus] Disabling DoAllAutoSize in wincontrol.inc?

Mattias Gaertner nc-gaertnma at netcologne.de
Tue Jul 20 11:56:22 CEST 2010


On Mon, 19 Jul 2010 21:02:37 -0400
waldo kitty <wkitty42 at windstream.net> wrote:

> On 7/19/2010 17:54, Mattias Gaertner wrote:
> > Keep in mind, that the old autosize code had to work with buggy
> > widgetsets and therefore had to silently ignore some errors. Since
> > these bugs were fixed the new autosize can now raise an exception when
> > it spots an inconsistency or an endless loop.
> 
> how many times thru the loop before the exception is raised? or does it count 
> travels thru the loop to determine an endless loop?

TWinControl.AlignControls and TAnchorSide.GetSidePosition stop after
ControlCount number of runs. 
DoAllAutoSize did not stop. I added a counter. The LCL now raises an
exception. 

Tobias, please test.


Mattias




More information about the Lazarus mailing list