官术网_书友最值得收藏!

TLayout

The FireMonkey components have an owner, parent, and children. If you put any component on a form, it becomes the owner and parent of the component.

Using properties such as Position, Align, Margins, and Padding with anchors, you will turn your app in to a responsive application.

Note that, even if you resize the form, the buttons remain aligned to the left, respecting the margins, and are inside the toolbar.
FireMonkey layouts are containers for other graphics objects that can be used to build elegant-looking forms. FireMonkey layouts extend the functionality of the controls for the arrangement and scaling of controls.

To achieve rich interfaces using TLayout, use more than one layout and the organization properties of the child controls in the layouts.

If everything went well here, you will have a form as shown in the following screenshot:

Try creating new views and see the resulting alignment. This is the basic principle for developing a responsive application in FireMonkey.

If you want to view the format with the screen rotated, there is a button to rotate the screen. With this, you can view the layout on the screen in a different format as shown in the following screenshot:

Look at the different types of layouts and their characteristics. For project types where you need to insert many components, use the ScrollBox so you can have a scrolling effect on your form.

主站蜘蛛池模板: 比如县| 沂水县| 邹平县| 汉沽区| 哈巴河县| 灵璧县| 木里| 常德市| 吉林省| 琼海市| 北宁市| 东兰县| 阳新县| 比如县| 巴彦淖尔市| 涿鹿县| 桓台县| 外汇| 白山市| 晋宁县| 台南县| 樟树市| 德庆县| 勐海县| 灵璧县| 连州市| 宁乡县| 会东县| 大关县| 乐至县| 思南县| 渝北区| 浦北县| 紫金县| 图木舒克市| 灵台县| 射洪县| 民权县| 长丰县| 诸暨市| 北票市|