[Lazarus] Form.BorderStyle

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


Zitat von Alexander Klenin <klenin at gmail.com>:

> 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.

Notes:
1. Only TControls can be put into TWinControl and a layouter is not a  
visual thing itself.
2. a layouter can be used by several controls.


Mattias







More information about the Lazarus mailing list