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

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.

主站蜘蛛池模板: 湖南省| 松原市| 广州市| 孟津县| 韶山市| 菏泽市| 双鸭山市| 屏东县| 蛟河市| 白山市| 罗甸县| 沂源县| 霍州市| 东兰县| 梁河县| 嘉祥县| 太仓市| 青海省| 鱼台县| 平谷区| 罗山县| 广平县| 泸州市| 班玛县| 焉耆| 泌阳县| 达拉特旗| 长葛市| 普格县| 东兴市| 彝良县| 金山区| 东宁县| 牙克石市| 三门县| 西乌珠穆沁旗| 崇州市| 定西市| 二手房| 黑龙江省| 闵行区|