[Lazarus] Error when recompiling the svn revision 24483
Michael Schnell
mschnell at lumino.de
Wed Apr 7 10:13:02 CEST 2010
On Tue, 6 Apr 2010, Hans-Peter Diettrich wrote:
> Michael Van Canneyt schrieb:
>
>>> There is much stuff that doesn't make sense for all controls.
>>
>> That should be a good reason for not adding more stuff.
>
> ... and to remove existing specific layout stuff.
>
>
>>>>> What should be complicated, when the Delphi layout manager is one of
>>>>> multiple available managers? How do you want to implement different
>>>>> layout management for parts of a form?
>>>>
>>>> Simply drop 2 layouters, and point them to the right parts of the form.
>>>
>>> With the result that the form is crowded with layouters :-(
>>
>> 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. 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.
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).
Inside the panel the controls are arranged using table layout.
So: 2 layouters.
>
>>> 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 ?
Michael.
More information about the Lazarus
mailing list