创建动态组件的要点
1、多用数组来存储动态组件,如TButtonArray:Array[1..10] of TButton; ButtonArray:TButtonArray;
2、要使得组件能正常显示,最关键的是制定组件的parent属性,如:ButtonArray[index].parent:=self;
3、其次要设定组件的大小:ButtonArray[index].width:=100; ButtonArray[index].height:=100;
暂时想到这些~~!
posted on 2010-11-08 23:23 Delphi7456 阅读(290) 评论(0) 编辑 收藏 举报