On Sat, Jan 24, 2009 at 6:05 PM, Marc Weustink <[email protected]> wrote: >> >> These kind of calculations are easy in the OnResize event of the parent. >> A OnResize is also much more flexible, because you can keep some childs >> fixed and others proportional etc. Also the in between child space is >> preferred to be fixed e.g. 6 pixels or so. I think there are many >> variations on the 'proportional theme' to be liked that they cannot be >> put into a 'choose pull-down' property editor. > > Or (as I recently discovered) you can set the align to alCustom and > handle all your custon stuff in OnCustomAlignPosition / > OnCustomAlignInsertBefore
And this is exactly where something like MiG Layout makes the stask much easier. So no in LCL we have the following location where layout code could be placed. Form.Create Form.OnResize OnCustomAlignPosition OnCustomAlignInsertBefore <each components>.OnResize ....etc.... MiGLayout does all the above in one location - easy to find, edit and maintain. Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ _______________________________________________ Lazarus mailing list [email protected] http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
