[Lazarus] Autosize behaviour

Hans-Peter Diettrich DrDiettrich1 at aol.com
Tue Apr 6 15:32:10 CEST 2010


Alexander Klenin schrieb:

> How about Layouter grabbing control of its Parent?
> So you can put it on the panel, and it will guide the layout of all
> child controls of that panel --
> seems logical to me.

This method could work, of course.

But the component will consume space in the control at design time, and 
it also will be part of the Controls array at runtime - requiring 
according checks while a layout is recalculated. And it shares other 
possible flaws with separate layout managers, e.g. the chance for 
multiple managers assigned to the same control, and/or additional links 
between control and manager.

DoDi





More information about the Lazarus mailing list