Delphi XE2 新控件 布局Panel TGridPanel TFlowPanel
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 > do
GridPanel1.ControlCollection.Items[].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
堆栈Panel,一行只有一个控件(不能多列),或一列只有一个控件(不能多行)
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布局控件
横向居中,纵向居中
AlignHorizontalCenterWithPanel
AlignVerticalCenterWithPanel
不需要些代码计算左边,自动水平居中 垂直居中 ,横向纵向居中!!!
布局就方便了。
TCardPanel
比pageControl方便的下一步的控件
TDatePicker 和 TTimePicker
Delphi XE2 新控件 布局Panel TGridPanel TFlowPanel的更多相关文章
- Delphi XE7 GPS控件android下的新变化
Delphi XE7 GPS控件的Android新变化 GPS控件的Accuracy可以起作用了,Accuracy>0时: 1--100:ACCURACY_HIGH 101--500 ...
- RAD 10 新控件 TSearchBox TSplitView
Seattle新控件 1.TSearchBox Events OnInvokeSearch published Occurs when the search indicator button is c ...
- 【Android】Anroid5.0+新控件---酷炫标题栏的简单学习
Android5.0+推出的新控件感觉特别酷,最近想模仿大神做个看图App出来,所以先把这些新控件用熟悉了. 新控件的介绍.使用等等网上相应的文章已经特别多了,题主也没那能力去写篇详解出来,本篇随笔记 ...
- Android其它新控件 (转)
原文出处:http://blog.csdn.net/lavor_zl/article/details/51312715 Android其它新控件是指非Android大版本更新时提出的新控件,也非谷歌I ...
- 一个Activity掌握Design新控件 (转)
原文地址:http://blog.csdn.net/lavor_zl/article/details/51295364 谷歌在推出Android5.0的同时推出了全新的设计Material Desig ...
- 一个Activity掌握Android5.0新控件 (转)
原文地址:http://blog.csdn.net/lavor_zl/article/details/51279386 谷歌在推出Android5.0的同时推出了一些新控件,Android5.0中最常 ...
- 一个Activity掌握Android4.0新控件 (转)
原文地址:http://blog.csdn.net/lavor_zl/article/details/51261380 谷歌在推出Android4.0的同时推出了一些新控件,Android4.0中最常 ...
- 【转】Android M新控件之AppBarLayout,NavigationView,CoordinatorLayout,CollapsingToolbarLayout的使用
Android M新控件之AppBarLayout,NavigationView,CoordinatorLayout,CollapsingToolbarLayout的使用 分类: Android UI ...
- 【转】Android M新控件之FloatingActionButton,TextInputLayout,Snackbar,TabLayout的使用
Android M新控件之FloatingActionButton,TextInputLayout,Snackbar,TabLayout的使用 分类: Android UI2015-06-15 16: ...
随机推荐
- openstack nova 基础知识——Quota(配额管理)
一.什么是配额(quota)管理 简单的讲就是控制用户资源的数量.在openstack里,管理员为每一个工程(project)分配的资源都是有一定限制的,这些资源包括实例(instance).cpu. ...
- NSRegularExpression iOS自带的正则表达式
以前做验证邮箱,电话号码的时候通常用第三方的正则表达式或者NSPredicate(点这里查看以前的文章),在后期,苹果推出了自己的正则表达式来提供给开发者调用,很方便,功能也强大. 具体可以查看官方文 ...
- .net如何解析二维码图片
二维码现在越来越流行,可以使用手机上或其它移动终端上的二维码扫描器软件对着二维码一扫,就可以得到相关信息.在互联网站上,可以找到很多二维码的工具,甚至还有不少在线生成.解析二维码的网站.在业务系统当中 ...
- Tair分布式缓存
淘宝缓存架构 redis很好用,提供缓存服务.相比memcached多了新数据结构和主从模式增加可用性.不过redis有一点不能满足一些互联网公司开发者需求. re ...
- 将命令绑定到事件中(WPF)
绑定到指定名称控件的——>指定属性上 <i:Interaction.Triggers> <i:EventTrigger E ...
- lightoj1422 区间dp
对于这一题想了很久真的是一点头绪也没有,还有组数明明是200,数据范围100,O(n^3)的复杂度居然不会爆掉(可能是因为一直在想怎么用O(n^2)的复杂度做这题 做法是先预处理dp,对于dp[i][ ...
- zoj 3965 Binary Tree Restoring(搜索)
Binary Tree Restoring Time Limit: 1 Second Memory Limit: 65536 KB Special Judge Given two ...
- 1D/1D优化dp之利用决策点的凸性优化
关于dp的优化之前做过一些简单的利用优先队列或者单调队列维护一个值就ok了,但有时候给出的方程很难直接用单调队列维护,需要转化一下思路. 这种优化方式利用数形结合,根据比较斜率来抛去一些非最优解,能将 ...
- python MySQLdb连接mysql失败(转载)
最近了解了一下django,数据库选用了mysql, 在连接数据库的过程中,遇到一点小问题,在这里记录一下,希望能够对遇到同样的问题的朋友有所帮助,少走一些弯路.关于django,想在这里也额外说一句 ...
- 完成一个servlet 就要在web.xml里面配一个映射,这样就有一个路径供我们 使用????? servlet从页面接收值?
最后,最容易忘记的是:在dao层中 调用xml里的删除sql语句 后面需要人为加上事务提交.一定要! sqlSession.commit();//jdbc是自动提交,但是mybatis中不是自动提交的 ...