"Jürgen Hestermann" <juergen.hesterm...@gmx.de> hat am 12. Februar 2012 um 12:16 geschrieben:
> I am trying to understand the logic of the anchors of graphic elements > like buttons etc., especially the meaning of the margin values. Assume > two buttons A and B: > > ----- ----- > | A | | B | > ----- ----- > > With the object inspector I can align the top of button B to the top of > button A. Then the top of B is always the top of A plus the (top) margin > of B. The margin values of A are irrelevant for the relation between the > two borders. The same applies to the bottom alignment. > > But if I now align the left border of B to the right border of A it > behaves different: The left margin of B is no longer the only value that > defines the position of B relativ to (the right of) A. The right margin > of A is also considered. It seems that the maximum of both values is > used for the distance. This is very confusing. Is that by design? Maybe you want read the documentation: http://wiki.lazarus.freepascal.org/Autosize_/_Layout#BorderSpacing Mattias
-- _______________________________________________ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus