On 8/18/06, Darius Blaszijk <[EMAIL PROTECTED]> 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 -
CompilerOptions.png
Description: PNG image
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal