日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

Delphi XE2 新控件 布局Panel TGridPanel TFlowPanel

發(fā)布時間:2025/3/19 编程问答 19 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Delphi XE2 新控件 布局Panel TGridPanel TFlowPanel 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

?

Delphi XE2 新控件

Firemonkey 布局Panel

Windows平臺VCl

TGridPanel TFlowPanel

?

FMX 跨平臺?

TLayout?TGridLayout?TFlowLayout?TGridPanelLayout

fmx的Layout容器比panel節(jié)省資源

?TGridPanelLayout

?GridPanelLayout1、GridPanelLayout

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

行高設(shè)為指定的值或按比例縮放。

九宮格

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,左側(cè)是TCategoryButtons,搜索框是TButtonedEdit

panel作為卡片。設(shè)置每個子panel屬性即可。pnl.AlignWithMargins:=true,panel.Margins.Top:=20; 左右上下的邊距設(shè)定就可以了。

?TGridLayou:表格,自動排列容器里的控件,控件大小相同可自定義大小,設(shè)定后全部控件大小相同且不變,x行y列,行數(shù)列列數(shù)根據(jù)控件大小變動。

?

?

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布局控件

與50位技術(shù)專家面對面20年技術(shù)見證,附贈技術(shù)全景圖

總結(jié)

以上是生活随笔為你收集整理的Delphi XE2 新控件 布局Panel TGridPanel TFlowPanel的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。