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

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

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

暂时想到这些~~!

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-24
  • 2021-08-30
  • 2021-09-27
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-03-08
  • 2021-09-28
  • 2021-09-19
  • 2022-03-05
  • 2021-08-17
相关资源
相似解决方案