Mattias Gaertner schreef: > On Wed, 16 Apr 2008 14:58:38 +0300 > ik <[EMAIL PROTECTED]> wrote: > >> Hello, >> >> On GTK(+) there is a support for control layout that can mirror and >> expand forms and components depending on their content and direction. >> >> Theoretically, it can not be done in Lazarus, because it is based on >> left, top, width and height, however, I'm looking for a way to add >> additional properties that could add such support (for any widget that >> support it). >> >> Any idea how can I achieve such a thing ? > > Either you don't know the LCL anchors or you don't like them. > > Do you know > http://wiki.lazarus.freepascal.org/Autosize_/_Layout > http://wiki.lazarus.freepascal.org/Anchor_Sides > http://wiki.lazarus.freepascal.org/LCL_AutoSizing > ?
What is probably meant: Assume the following layout: --------- ------------------ | Label1| | Edit1 | --------- ------------------ Now change the BidiMode property of both controls (or maybe the form) to bdRightToLeft. Then the layout should change too: ------------------ --------- | Edit1 | | Label1| ------------------ --------- (at least it is mirroring) Vincent _______________________________________________ Lazarus mailing list [email protected] http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
