[Lazarus] Autosize behaviour

Alexander Klenin klenin at gmail.com
Tue Apr 6 14:00:11 CEST 2010


On Tue, Apr 6, 2010 at 22:52, Martin <lazarus at mfriebe.de> wrote:
> I can see that work, if a Layouter was always global => drop it on a Form,
> and the Layouter will grab control of all controls on the Form.
>
> But if you want selective Autosizing (eg, just PanelX should use the
> Layouter, the rest uses the default, or yet another Layouter), then the user
> needs to configure this.
>
> Either you need a special property editor, which opens for the Layouter, and
> allows you to add/remove controls. Or you have a Layouter property. IMHO the
> property would be fine in this case.
>
> Martin
> Or am I missing a 3rd way?

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.

-- 
Alexander S. Klenin




More information about the Lazarus mailing list