[Lazarus] Autosize behaviour
Hans-Peter Diettrich
DrDiettrich1 at aol.com
Wed Apr 7 01:35:42 CEST 2010
Michael Van Canneyt schrieb:
>>> I would be very surprised to see more than 4 layouters on a form.
>>> Most forms will have a single TTableLayout or TBorderLayout
>>> component, and that's it.
>>
>> How do you know?
>
> Simple experience.
AFAIR the IDE is a counter example.
> Most controls will not have a need for a layouter, but
> can rely on the default behaviour (absolute positioning), for which no
> layouter is needed.
This case is trivial.
> In the few cases that I needed a "layout", it was borderlayout: a grid
> which is 'alClient', and a panel with Align=pbottom (in borderlayout speak:
> grid is center region, panel is south region).
That's the standard (Delphi) layouter as well.
> Inside the panel the controls are arranged using table layout.
> So: 2 layouters.
Other application forms (settings dialogs...) contain many more
controls, within multiple containers with specific layouts.
>>>> Not to mention prefabricated controls, e.g. with horizontal or
>>>> vertical layout.
>>>
>>> I don't understand what you mean here.
>>
>> Many widgetsets support controls for specific layouts. Shouldn't
>> Lazarus try to use just these controls?
>
> Sorry, but I still don't understand :( Please give an example ?
Look at the gtk2 widgetset.
DoDi
More information about the Lazarus
mailing list