Delphi XE2 新控件

Firemonkey 布局Panel

Windows平台VCl

TGridPanel TFlowPanel

FMX 跨平台

TLayout TGridLayout TFlowLayout TGridPanelLayout

fmx的Layout容器比panel节省资源

TGridPanelLayout

GridPanelLayout1、GridPanelLayout

http://docwiki.embarcadero.com/Libraries/Seattle/en/FMX.Layouts.TGridPanelLayout

行高设为指定的值或按比例缩放。

九宫格

TGridPanelLayout.TCellItem.SizeStyle,Absolute,Percent

选中控件,ColumnCollection,RowCollection添加列行

    GridPanel1.ControlCollection.BeginUpdate;while GridPanel1.ControlCollection.Count > 0 doGridPanel1.ControlCollection.Items[0].Control.DisposeOf;

http://docwiki.embarcadero.com/RADStudio/Seattle/en/FireMonkey_Layouts_Strategies

TFlowLayout

控件大小可不相同。

TFlowPanel的效果图,里边是panel,左侧是TCategoryButtons,搜索框是TButtonedEdit

panel作为卡片。设置每个子panel属性即可。pnl.AlignWithMargins:=true,panel.Margins.Top:=20; 左右上下的边距设定就可以了。

TGridLayou:表格,自动排列容器里的控件,控件大小相同可自定义大小,设定后全部控件大小相同且不变,x行y列,行数列列数根据控件大小变动。

http://edn.embarcadero.com/article/33421

TButtonGroup

http://docwiki.embarcadero.com/CodeExamples/XE2/en/VCLButtons%28Delphi%29

TRectangle 好用,有填充颜色

TGridPanelLayout.EGridLayoutException with message 'Cannot delete a row that contains controls

窗体的pas文件里有

{$R *.LgXhdpiPh.fmx ANDROID} ,删除就解决了。

TCategoryPanelGroup

TStackPanel

RAD Studio 10.2.2

2017.12.15

https://community.embarcadero.com/blogs/entry/new-vcl-panels-in-delphi-10-2-2

http://docwiki.embarcadero.com/RADStudio/Tokyo/en/Using_the_Stack_Panel_Component

The stack panel is a panel with a special layout. All controls added to it are placed in a different "row" (or column if you set it horizontally). The controls can be aligned to the left, the right, the center or use the entire space (fill). You set the default alignment at the stack panel level, and you can override it for each individual control (or use the special default value to pick the parent control setting). Each of the controls hosted by the panel, gets three additional properties "injected" by the container -- at the bottom of the Object Inspector list -- as you can see below:

RelativePanel

Seattle就有了

http://docwiki.embarcadero.com/CodeExamples/Tokyo/en/VCL.RelativePanel_Sample

http://docwiki.embarcadero.com/RADStudio/Tokyo/en/What%27s_New_in_Seattle

示例源码

  • Subversion Repository for Delphi: http://sourceforge.net/p/radstudiodemos/code/HEAD/tree/branches/RADStudio_Tokyo/Object%20Pascal/VCL/RelativePanel
  • Subversion Repository for C++: http://sourceforge.net/p/radstudiodemos/code/HEAD/tree/branches/RADStudio_Tokyo/CPP/VCL/RelativePanel

win10布局控件

Delphi XE2 新控件 布局Panel TGridPanel TFlowPanel相关推荐

  1. 【Android】Anroid5.0+新控件---酷炫标题栏的简单学习

    Android5.0+推出的新控件感觉特别酷,最近想模仿大神做个看图App出来,所以先把这些新控件用熟悉了. 新控件的介绍.使用等等网上相应的文章已经特别多了,题主也没那能力去写篇详解出来,本篇随笔记 ...

  2. CoordinatorLayout+AppBarLayout实现上滑隐藏ToolBar-Android M新控件

    效果图 CoordinatorLayout 概述 CoordinatorLayout官方API 从官方文档中我们可以看到: CoordinatorLayout是一个增强型的FrameLayout. 两 ...

  3. NavigationDrawer和NavigationView-Android M新控件

    Translucent System Bars-4.4新特性 Toolbar-5.0新特性 NavigationDrawer 简介 NavigationDrawer 是 Google 在 Materi ...

  4. delphi使用 第三方控件

    第三方控件安装时必须把所有的pas,dcu,dpk,res等文件复制到你的Lib目录下 然后通过dpk进行安装 安装后会多出来新的控件面板,新控件就在那里了 当然也有一些控件会安装到原有的面板上 比如 ...

  5. Android5.0新控件

    谷歌在推出Android5.0的同时推出了一些新控件,Android5.0中最常用的新控件有下面5种.  1. CardView(卡片视图) CardView顾名思义是卡片视图,它继承FrameLay ...

  6. 一个Demo学会用Android兼容包新控件

    2019独角兽企业重金招聘Python工程师标准>>> 前言 伟大的Google为Android推出了一系列的兼容包,最新的就是Design Support Library了,这里我 ...

  7. 【转】Android M新控件之AppBarLayout,NavigationView,CoordinatorLayout,CollapsingToolbarLayout的使用...

    Android M新控件之AppBarLayout,NavigationView,CoordinatorLayout,CollapsingToolbarLayout的使用 分类: Android UI ...

  8. Android M 新控件了解学习

    Android M 新控件了解:FloatingActionButton,TextInputLayout,Snackbar,TabLayout, AppBarLayout,NavigationView ...

  9. Android 5.0新控件——FloatingActionButton(悬浮按钮)

    Android 5.0新控件--FloatingActionButton(悬浮按钮) FloatingActionButton是5.0以后的新控件,一个悬浮按钮,之所以叫做悬浮按钮,主要是因为自带阴影 ...

最新文章

  1. Nginx配置https,反向代理多实例tomcat的操作记录
  2. C#的变迁史 - C# 2.0篇
  3. 「 每日一练,快乐水题 」1791. 找出星型图的中心节点
  4. Three.js制作360度全景图
  5. 实作 ASP.NET 多笔数据离线编辑
  6. Java、JavaScript、C、C++、PHP、Python都是用来开发什么?赶紧来看看!
  7. STL_set/vector/deque
  8. 动态库加载的函数总结
  9. [导入]用户控件包装器
  10. linux学习笔记:yum命令的常见用法
  11. tftp服务器离线安装
  12. macOS “不能安装该软件,因为当前无法从软件更新服务器获得” 解决方法
  13. 什么是直方图,如何使用它来改善照片?
  14. C3P0 连接池错误【已解决】-An exception occurred while acquiring a poolable resource. Will retry.
  15. python 实现实时语音对讲
  16. openwrt 抓取流量包
  17. IT忍者神龟之小程序最全的微信小程序项目实例
  18. python数据常用命令_python写的系统常用命令(一)
  19. 学NLP的人跑去CVPR投稿!中了顶会一作,还是一位本科生...
  20. 前端系列之实战(城市医院预约挂号平台2.基本样式编写)

热门文章

  1. 二叉排序树的中序遍历规律_看懂这篇文章,玩转二叉查找树
  2. css 缩放_CSS 中 transform、animation、transition、translate的区别
  3. tf.Session().as_default的作用
  4. Spring单例的线程安全性
  5. SpringBoot+Vue+Itext实现前端请求文件流的方式导出PDF时在指定位置添加照片
  6. Docker+geoserver发布shp地图服务
  7. 信息系统项目管理师-信息安全管理考点笔记
  8. DevExpress的TreeList实现节点上添加自定义右键菜单并实现删除节点功能
  9. Jquery中绑定select的change事件自动填充input的value值
  10. 谷歌浏览器怎样通过检查验证图片路径问题