[Lazarus] Does Lazarus have "sizer" or "layout" objects?

Martin Friebe lazarus at mfriebe.de
Wed Jan 7 17:02:17 CET 2009


Vincent Snijders wrote:
> 2009/1/7 David W Noon <david.w.noon at ntlworld.com>:
>   
>> Hi,
>>
>> Some C++ class libraries have object classes that automatically resize
>> widgets when a form is resized by the user. For example, wxWidgets calls
>> them sizers, and Qt calls them layouts. I have perused the LCL
>> documentation and have found nothing that quite meets the bill. I tried
>> a TPanel object, but it did not have anywhere near that functionality;
>> in fact, it seemed to do very little.
>>
>> So, as the subject line says, does Lazarus have such classes?
>>     
>
> No, there are no such classes. A control has anchors, and a number of
> a controls can autosize (i.e. adjust size accoding to their contents).
>
> For anchoring, see wiki:
> http://wiki.lazarus.freepascal.org/IDE_Window:_Anchor_Editor
> and
> http://wiki.lazarus.freepascal.org/Anchor_Sides
>
>   
Forms/Panels... also have "ChildSizing", which comes close to a grid-layout

Martin



More information about the Lazarus mailing list