注册 登录
编程论坛 Delphi论坛

急问板主、高手在delphi中如何遍历窗口中的所有控件!!!

nixianli 发布于 2005-07-01 15:28, 3551 次点击
急问高手在delphi中如何遍历窗口中的所有控件!!!
4 回复
#2
zhangzujin2005-07-02 23:38
Object Tree View中可以啊.
View->Object Tree View即可以看到你所有的控件.
#3
nixianli2005-07-04 08:48
在delphi程序中如何遍历窗口中的所有控件!!!
#4
ysp_19842006-01-05 06:33

var
i:integer;
frmComponent:TComponent;


for i:=0 to form1.componentcount-1 do
begin
frmComponent:=form3.Components[i];
if frmComponent is Tedit then
//do others
if frmComponent is Tlabel then
//do others

end;
#5
hgang2006-01-06 19:46
你说的遍历是在应用时遍历啊,还是在编程时遍历啊
1