[fpc-pascal] Free Pascal widget set

Graeme Geldenhuys graemeg.lists at gmail.com
Fri Aug 18 22:24:33 CEST 2006


On 8/18/06, Darius Blaszijk <dhkblaszyk at zeelandnet.nl> wrote:
> Just a note, but the "auto-sizing" of components as depicted in the fig2.
> example is perfectly possible with Anchoring already. There's no need for a
> layout manager for that functionality.
>
> Darius

Lazarus has much better anchoring support that Delphi, I have to
admit.  But "auto-sizing" is just one of the things the Layout
Managers do.  It also aligns the components, positions them, prevents
them from being clipped (setting minimum allowed size) when the form
is resized, etc...  All this by just creating a layout manager and
inserting widgets into it.

Take a look at the attached screenshot.  This is how most of the
dialogs in Lazarus look to me.  It is compiled with Gtk1.  Most of the
captions are clipped, group boxes don't align...  It doesn't resize
the controls when the dialog resizes.  Those problems will never
happen in fpGUI, no matter the language, resolution, dpi setting, etc.
 Yes, I have tried to recreate that exact screen using Lazarus with
all its anchoring features and alignment features.  I never got it to
work 100% and it wasn't easy at all.

Good news is, if you don't like the Box and Grid Layouts, you can
always use the Fixed Layout, which then allows you to place component
anywhere without auto-align and positioning.

Regards,
  - Graeme -
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CompilerOptions.png
Type: image/png
Size: 19969 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20060818/a8e3d0d2/attachment.png>


More information about the fpc-pascal mailing list