创建动态组件的要点

1、多用数组来存储动态组件,如TButtonArray:Array[1..10] of TButton;             ButtonArray:TButtonArray;

2、要使得组件能正常显示,最关键的是制定组件的parent属性,如:ButtonArray[index].parent:=self;

3、其次要设定组件的大小:ButtonArray[index].=100;    ButtonArray[index].height:=100;

暂时想到这些~~!

原文地址:https://www.cnblogs.com/delphi7456/p/1872226.html