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?


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

Reply via email to