How are fields and additions used in FireMonkey?

Does anyone know how to use Margin and Padding fields?

Apparently, they can be used instead of anchors, since FM does not support anchors. This morning I played with them, but could not get them to act the way I wanted. for example, I would like two buttons to be attached to the right and bottom of the form, so that when the form changes, the buttons move with the form.

+5
source share
1 answer

To do what you want, put TLayout in your form and set its alignment to β€œbottom”. Inside you can place two buttons that you want to have.

, , . , 10 , 25 , - 35.

10, . , , 15, "". , . , .

                                         #
                                         #
 -------+--------+------------------+----#
        |        |H=25 (Button)     |    #H=35 (Layout)
        |   15   |                  | 10 #
 -------+ padd.  +------------------+    #
                 10 bot layout mrgn      #
 #########################################
+5

All Articles