delphi控件遍历
来源:互联网 发布:软件测试工作职责 编辑:程序博客网 时间:2024/04/29 22:21
procedure TForm1.Button1Click(Sender: TObject);
var
i:Integer;
begin
ListBox1.Items.Clear;
ListBox1.Items.Add('开始遍历控件******');
for i:=1 to ComponentCount-1 do
begin
ListBox1.Items.Add(Components[i].Name);
if Components[i] is TDateTimePicker then
ListBox1.Items.Add('时间控件值:' + DateToStr(TDateTimePicker(Components[i]).Date));
if Components[i] is Tedit then
ListBox1.Items.Add('文本框值:'+Tedit(Components[i]).text);
end;
ListBox1.Items.Add('遍历控件结束******');
end;
遍历GroupBox1中的子控件
procedure TForm1.Button2Click(Sender: TObject);
var
i:Integer;
begin
ListBox1.Items.Clear;
ListBox1.Items.Add('开始遍历控件******');
for i:=1 to GroupBox1.ControlCount-1 do
begin
ListBox1.Items.Add(GroupBox1.Controls[i].Name);
if GroupBox1.Controls[i] is TDateTimePicker then
ListBox1.Items.Add('时间控件值:' + DateToStr(TDateTimePicker(GroupBox1.Controls[i]).Date));
if GroupBox1.Controls[i] is Tedit then
ListBox1.Items.Add('文本框值:'+TGedit(GroupBox1.Controls[i]).text);
end;
ListBox1.Items.Add('遍历控件结束******');
end;
- Delphi遍历控件
- delphi控件遍历
- Delphi遍历所有控件
- Delphi遍历控件
- delphi控件遍历
- 关于菜单控件遍历与树型控件的区别(Delphi)
- delphi控件
- Delphi控件-复合控件
- 遍历控件
- 控件遍历
- 遍历控件
- DELPHI中怎么在程序中遍历上面的全部控件
- Delphi 查找标题已知的窗口句柄,遍历窗口控件句柄
- delphi TStringList 遍历操作
- delphi 遍历注册表
- delphi 遍历所有文件夹
- Delphi 控件安装
- Sqlite 的Delphi控件
- 错误集
- 大整数的求幂 c++程序
- Delphi中调用CHM帮助文件
- 源代码编译为托管模块后,托管模块都包含哪些东西?
- 21世纪的软件测试
- delphi控件遍历
- Ubuntu 8.04下使用freemind 0.8.1时,不能使用命令行启动故障的解决
- VCL解压缩控件使用例子
- strcmp函数的实现
- 体会工作与学习之间的不同
- Linux 系统文件类型
- treeview添加节点
- 瑞银看淡未来中国3G业务发展
- 判断文件是否正在被使用