【发布时间】:2009-12-31 16:27:09
【问题描述】:
据说要生成一个winform:
var
F : TForm;
L : TLabel;
begin
F := TForm.Create(Application);
L := TLabel.Create(F);
L.Parent := F; // Needed to have it show up on the form.
L.Left := 50;
L.Top := 50;
L.Caption := 'This is an example';
F.Show;
end;
事实上它来自my previous question。
如果是C程序,我可以这样运行:
> gcc foo.c -o foo.exe
> foo.exe
如何在 Delphi 中进行类似操作?
【问题讨论】:
-
只需检查 Lars 对您上一个问题的回答!
-
我也添加了对这个问题的回答。感谢 Hugues 的提示。
标签: delphi