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

  • Delphi Programming Projects
  • William Duarte
  • 234字
  • 2021-06-24 14:27:07

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.

主站蜘蛛池模板: 应城市| 门头沟区| 碌曲县| 河北区| 安多县| 徐州市| 红桥区| 永泰县| 博白县| 司法| 南涧| 和田县| 休宁县| 沧州市| 安陆市| 伊川县| 拜城县| 怀集县| 阳山县| 伊金霍洛旗| 南皮县| 巴彦县| 金溪县| 伊金霍洛旗| 河南省| 陵水| 孟州市| 裕民县| 荣成市| 凉山| 彭州市| 阿克| 乌拉特中旗| 甘德县| 江陵县| 吉安市| 石家庄市| 余姚市| 红安县| 望江县| 甘南县|