On Sun, 25 Jan 2009 00:28:33 +0200
Graeme Geldenhuys <[email protected]> wrote:

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

Let's stay realistic.
There will always be cases where you need methods/events to override.
For example:
Changes to the content of a control. For example the columns of a
TStringGrid.


Mattias
_______________________________________________
Lazarus mailing list
[email protected]
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to