【发布时间】:2017-02-18 07:38:42
【问题描述】:
有没有办法在不知道其名称的情况下使用在运行时创建的组件的属性?我的意思是在你已经这样做之后。
with TPanel.Create(self) do
begin
Name := 'Panel' + IntToStr(ComponentCount + 1);
Height := 50;
Width := 100;
Top := 30;
Left := 30;
Parent := self;
end;
【问题讨论】:
-
将对象存储在容器中,例如
TList<TPanel>
标签: delphi