所有窗体颜色为红色: var i: Integer; begin Application.Initialize; Application.CreateForm(TForm1, Form1); Application.CreateForm(TForm2, Form2); for i := 0 to Screen.FormCount - 1 do Screen.Forms[i].Color := $FF; Application.Run; end.
选择Project->View Source,调出工程文件,作类似上面的修改
所有窗体颜色为红色: Delphi(Pascal) codevar i: Integer; begin Application.Initialize; Application.CreateForm(TForm1, Form1); Application.CreateForm(TForm2, Form2); for i := 0 to Screen.FormCount - 1 do Screen.Forms[i].Color := $FF; Application.Run; end.
var
i: Integer;
begin
Application.Initialize;
Application.CreateForm(TForm1, Form1);
Application.CreateForm(TForm2, Form2);
for i := 0 to Screen.FormCount - 1 do
Screen.Forms[i].Color := $FF;
Application.Run;
end.
Delphi(Pascal) codevar
i: Integer;
begin
Application.Initialize;
Application.CreateForm(TForm1, Form1);
Application.CreateForm(TForm2, Form2);
for i := 0 to Screen.FormCount - 1 do
Screen.Forms[i].Color := $FF;
Application.Run;
end.