object grdpnlAdd: TGridPanel
Left =
Top =
Width =
Height =
Align = alClient //重要
BevelOuter = bvNone
BorderWidth =
Color = clWhite
ColumnCollection = < //设定3列 设定比例
item
Value = 49.500000000000000000
end
item
Value = 1.000000000000000000
end
item
Value = 49.500000000000000000
end>
ControlCollection = <
item
Column =
Control = pnlVehicleInfo //每个格子控制的容器
Row =
end
item
Column =
Control = pnlTransportInfo
Row =
end
item
Column =
Control = pnlCarrageUnit
Row =
end
item
Column =
Control = pnlConsignUnit
Row =
end
item
Column =
Control = pnl1CargoInfo
Row =
end
item
Column =
Control = pnl1Hint
Row =
end>
DoubleBuffered = True
ExpandStyle = emFixedSize
Locked = True
Padding.Left =
Padding.Top =
Padding.Right =
Padding.Bottom =
ParentBackground = False
ParentDoubleBuffered = False
RowCollection = < //添加五行,设定比例
item
Value = 33.000000000000000000
end
item
Value = 1.000000000000000000
end
item
Value = 27.000000000000000000
end
item
Value = 1.000000000000000000
end
item
Value = 38.000000000000000000
end>
TabOrder =
VerticalAlignment = taAlignBottom
ExplicitTop = -
ExplicitWidth =
ExplicitHeight =
object pnlVehicleInfo: TPanel
Left =
Top =
Width =
Height =
Align = alClient
BevelOuter = bvNone
BevelWidth =
BorderWidth =
Color =
Font.Charset = ANSI_CHARSET
Font.Color = clWindowText
Font.Height = -
Font.Name = ####
Font.Style = []
ParentBackground = False
ParentFont = False
TabOrder =
ExplicitWidth =
ExplicitHeight =
object grpVehicleInfo: TGroupBox
Left =
Top =
Width =
Height =
Align = alClient
Caption = ' '####' '
Font.Charset = ANSI_CHARSET
Font.Color = clWindowText
Font.Height = -
Font.Name = ####
Font.Style = []
ParentFont = False
TabOrder =
ExplicitWidth =
ExplicitHeight =
end
end
object pnlTransportInfo: TPanel
Left =
Top =
Width =
Height =
Align = alClient
BevelOuter = bvNone
BevelWidth =
BorderWidth =
Color =
Font.Charset = ANSI_CHARSET
Font.Color = clWindowText
Font.Height = -
Font.Name = ####
Font.Style = []
ParentBackground = False
ParentFont = False
TabOrder =
ExplicitTop =
ExplicitWidth =
ExplicitHeight =
object grpTransportInfo: TGroupBox
Left =
Top =
Width =
Height =
Align = alClient
Caption = ' '####' '
Font.Charset = ANSI_CHARSET
Font.Color = clWindowText
Font.Height = -
Font.Name = ####
Font.Style = []
ParentFont = False
TabOrder =
ExplicitWidth =
ExplicitHeight =
end
end
object pnlCarrageUnit: TPanel
Left =
Top =
Width =
Height =
Align = alClient
BevelOuter = bvNone
BevelWidth =
BorderWidth =
Color =
Font.Charset = ANSI_CHARSET
Font.Color = clWindowText
Font.Height = -
Font.Name = ####
Font.Style = []
ParentBackground = False
ParentFont = False
TabOrder =
ExplicitLeft =
ExplicitWidth =
ExplicitHeight =
object grpCarrageUnit: TGroupBox
Left =
Top =
Width =
Height =
Align = alClient
Caption = ####' '
Font.Charset = ANSI_CHARSET
Font.Color = clWindowText
Font.Height = -
Font.Name = ####
Font.Style = []
ParentFont = False
TabOrder =
ExplicitWidth =
ExplicitHeight =
end
end
object pnlConsignUnit: TPanel
Left =
Top =
Width =
Height =
Align = alClient
BevelOuter = bvNone
BevelWidth =
BorderWidth =
Color =
Font.Charset = ANSI_CHARSET
Font.Color = clWindowText
Font.Height = -
Font.Name = ####
Font.Style = []
ParentBackground = False
ParentFont = False
TabOrder =
ExplicitLeft =
ExplicitTop =
ExplicitWidth =
ExplicitHeight =
object grpConsignUnit: TGroupBox
Left =
Top =
Width =
Height =
Align = alClient
Caption = ' '####' '
Font.Charset = ANSI_CHARSET
Font.Color = clWindowText
Font.Height = -
Font.Name = ####
Font.Style = []
ParentFont = False
TabOrder =
ExplicitWidth =
ExplicitHeight =
end
end
object pnl1CargoInfo: TPanel
Left =
Top =
Width =
Height =
Align = alClient
BevelOuter = bvNone
BevelWidth =
BorderWidth =
Color =
Font.Charset = ANSI_CHARSET
Font.Color = clWindowText
Font.Height = -
Font.Name = ####
Font.Style = []
ParentBackground = False
ParentFont = False
TabOrder =
ExplicitTop =
ExplicitWidth =
ExplicitHeight =
object grpCargoInfo: TGroupBox
Left =
Top =
Width =
Height =
Align = alClient
Caption = ' '####' '
Font.Charset = ANSI_CHARSET
Font.Color = clWindowText
Font.Height = -
Font.Name = ####
Font.Style = []
ParentFont = False
TabOrder =
ExplicitWidth =
ExplicitHeight =
end
end
object pnl1Hint: TPanel
AlignWithMargins = True
Left =
Top =
Width =
Height =
Align = alClient
BevelOuter = bvNone
BevelWidth =
BorderWidth =
Color =
Font.Charset = ANSI_CHARSET
Font.Color = clWindowText
Font.Height = -
Font.Name = ####
Font.Style = []
ParentBackground = False
ParentFont = False
TabOrder =
ExplicitLeft =
ExplicitTop =
ExplicitWidth =
ExplicitHeight =
end
end

全选复制,粘贴到XE 的空窗体上即可。

添加行 控件的ColumnCollection属性右键添加 Add item

添加列 控件的RowCollection 属性右键添加 Add item

控制的格子ControlCollection 就自动出来了,在上面放panel等容器,然后通过这个属性选择容器对应受到哪个格子控制。

或者用代码控制

{grdpnlAdd.ColumnCollection.BeginUpdate;
grdpnlAdd.ColumnCollection[0].Value := 49.5;
grdpnlAdd.ColumnCollection[1].Value := 1;
grdpnlAdd.ColumnCollection[2].Value := 49.5;
grdpnlAdd.ColumnCollection.EndUpdate;
grdpnlAdd.RowCollection.BeginUpdate;
grdpnlAdd.RowCollection[0].Value := 32;
grdpnlAdd.RowCollection[1].Value := 1;
grdpnlAdd.RowCollection[2].Value := 32;
grdpnlAdd.RowCollection[3].Value := 1;
grdpnlAdd.RowCollection[4].Value := 33;
grdpnlAdd.RowCollection.EndUpdate; }

TGridPanel做一个自动按比例缩放的窗体的更多相关文章

  1. 做一个自动修改本机IP和mac的bat文件

    原文:做一个自动修改本机IP和mac的bat文件 1.ip bat修改理论探讨 前两天我突然萌生了一个念头:能不能做一个小程序来实现自动配置或修改IP和mac,达到一键搞定的目的,这样尤其适合那些带着 ...

  2. Micropython 如何用Turnipbit做一个自动浇水装置

    最近在研究Turnipbit这块板子,打算是连接一个摄像头模块,正在实验练习中,(祝自己早日弄好)上篇文章我们讲了用Turnipbit连接LCD5110显示英文词句,前几天给家里花浇水的时候发现花招了 ...

  3. [转]用Python做一个自动生成读表代码的小脚本

    写在开始(本片文章不是写给小白的,至少你应该知道一些常识!) 大家在Unity开发中,肯定会把一些数据放到配置文件中,尤其是大一点的项目,每次开发一个新功能的时候,都要重复的写那些读表代码.非常烦.来 ...

  4. 【按键精灵篇】如何做一个自动打开APP进入注册页面自动输入自己手机号

    按键精灵,虽然很早听过,但是一直没有真正使用过,所以最近有点时间也简单试一下,通过脚本自动清理APP缓存,打开百家号并自动进入注册页面输入自己的手机号. 软件清单 1. 雷电手机模拟器:https:/ ...

  5. 今天做一个winform,想直接把窗体改成输出类库,其他地方直接调结果总提示不能注册组件,回来调度,可以,总结,windows还是直接用新建的类型项目,改容易出错

    如题, 对于winform程序,还是新建一个类库,这样,在类库里面可以添加窗体.这样可以提供其他程序集来调用里面的窗体

  6. 使用java AWT做一个增加按钮的简单菜单窗体

    package com.ysq.Swing; import java.awt.BorderLayout; import java.awt.Container; import java.awt.Flow ...

  7. 更新到PS CC 2019 缩放的时候 按住shift变成不规则缩放了 反而不按住shift是等比例缩放

    更新到PS CC 2019 缩放的时候 按住shift变成不规则缩放了 反而不按住shift是等比例缩放 更新到PS CC 2019 缩放的时候 按住shift变成不规则缩放了 反而不按住shift是 ...

  8. 做了一个图片等比缩放的js

    做了一个图片等比缩放的js 芋头 发布在view:8447   今天改了一下博客的主题,发现博客主题在ie6下变样了,后来发现是因为某篇文章里的某个图片太大了撑开了容器,导致样式错位,前几天公司需求里 ...

  9. delphi 一个自动控制机的硅控板检测程序,用多线程和API,没有用控件,少做改动就能用 用485开发

    一个自动控制机的硅控板检测程序,用多线程和API,没有用控件,少做改动就能用Unit CommThread; Interface Uses  Windows, Classes, SysUtils, G ...

随机推荐

  1. Derivative of the softmax loss function

    Back-propagation in a nerual network with a Softmax classifier, which uses the Softmax function: \[\ ...

  2. ecshop 多表删除

    $sql = 'DELETE O, G FROM ' . $GLOBALS['ecs']->table('delivery_order') . ' AS O, ' . $GLOBALS['ecs ...

  3. linux集群时钟问题

    一.ntpd与ntpdate的区别: 摘自:ntpd与ntpdate的区别 - 百事乐 - 博客园  http://www.cnblogs.com/liuyou/archive/2012/07/29/ ...

  4. 一步一步学习Bootstrap系列--表单布局

    前言:Bootstrap 属于前端 ui 库,通过现成的ui组件能够迅速搭建前端页面,简直是我们后端开发的福音,通过几个项目的锻炼有必要总结些常用的知识,本篇把常用的Bootstrap表单布局进行归纳 ...

  5. git版本控制管理实践-2

    给网站设置一个 "根目录下的logo.ico", 还是很有必要的,比如赶集网,这时在 "历史"搜索时, 就可以根据 网站的 logo.ico 很轻松的就能够找到 ...

  6. hadoop集群安装故障解决

    nodemanager进程解决:http://blog.csdn.net/baiyangfu_love/article/details/13504849 编译安装:http://blog.csdn.n ...

  7. jvm七种垃圾收集器

    JVM_七种垃圾收集器介绍   本文中的垃圾收集器研究背景为:HotSpot+JDK7 一.垃圾收集器概述 如上图所示,垃圾回收算法一共有7个,3个属于年轻代.三个属于年老代,G1属于横跨年轻代和年老 ...

  8. mongDB-- 3. 查询操作

    1. 准备工作 (1)启动mongo 进入mongo安装目录的bin/ 目录 , ./mongod (2)启动mongo客户端 ./mongo (3) 查看所有库 show dbs; (4) 切换到l ...

  9. C和指针 第十三章 高级指针话题

    高级声明: int (*f)(); 这里声明有两个括号,第二个括号是函数调用,第一个括号是聚组作用.(*f)是一个函数,所以f是指向返回整型的函数的指针.程序中的每个函数都位于,内存中某个位置,所以存 ...

  10. 使用ajax技术实现txt弹出在页面上

    使用ajax技术实现txt弹出在页面上   使用ajax技术实现点击按钮,将TXT文本里的内容通过弹出框显示到页面上 /*事件会在页面加载完成后触发.*/ <script> window. ...