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

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.

主站蜘蛛池模板: 本溪市| 拜泉县| 格尔木市| 始兴县| 肃北| 铁岭县| 柳江县| 连平县| 霍城县| 年辖:市辖区| 侯马市| 图片| 阜新| 德昌县| 河池市| 淄博市| 建始县| 淮安市| 霸州市| 洛浦县| 云阳县| 太和县| 新竹市| 固始县| 扎赉特旗| 尖扎县| 浦东新区| 吕梁市| 建始县| 黄骅市| 维西| 台东县| 济南市| 开远市| 葫芦岛市| 文昌市| 汽车| 潍坊市| 阳朔县| 山阳县| 武清区|