里
里斯
Unregistered / Unconfirmed
GUEST, unregistred user!
我想在运行时动态创建窗体,下面是窗体的一些代码,我是一条一条记录读取后再创建,有没有更好的办法呀?
代码示例:
object Form1: TForm1
Left = 192
Top = 107
Width = 696
Height = 480
Caption = 'Form1'
Color = clBtnFace
object Label1: TLabel
Left = 88
Top = 48
Width = 32
Height = 13
Caption = 'Label1'
end
object btn1: TButton
Left = 128
Top = 112
Width = 75
Height = 25
Caption = 'btn1'
TabOrder = 0
end
end
代码示例:
object Form1: TForm1
Left = 192
Top = 107
Width = 696
Height = 480
Caption = 'Form1'
Color = clBtnFace
object Label1: TLabel
Left = 88
Top = 48
Width = 32
Height = 13
Caption = 'Label1'
end
object btn1: TButton
Left = 128
Top = 112
Width = 75
Height = 25
Caption = 'btn1'
TabOrder = 0
end
end