Procedure SetFormStyle(AControl: TControl); var i: integer; begin for i := 0 to AControl.Count - 1 do begin if AControl.Controls[i] is TForm Then begin SetFormStyle(AControl.Controls[i]); (AControl as TForm).FormStyle := fsNormal; end; end; end;
错了,该从Application递归。 Procedure SetFormStyle(AControl: TControl); var i: integer; cControl: TControl; begin cControl := Application; for i := 0 to cControl.Count - 1 do begin if cControl.Controls[i] is TForm Then begin SetFormStyle(cControl.Controls[i]); (cControl.Controls[i] as TForm).FormStyle := fsNormal; end; end; (AControl as TForm).FormStyle := fsNormal; end; 先置为Normal,再 程序没调过,自己条!
Procedure SetFormStyle(AControl: TControl); var i: integer; begin for i := 0 to (application.ComponentCount - 1) do begin if application.Components[i] is TForm then begin SetFormStyle(application.Components[i]); (application.Components[i] as TForm).FormStyle := fsNormal; end; end; end;
var
i: integer;
begin
for i := 0 to AControl.Count - 1 do
begin
if AControl.Controls[i] is TForm Then
begin
SetFormStyle(AControl.Controls[i]);
(AControl as TForm).FormStyle := fsNormal;
end;
end;
end;
Procedure SetFormStyle(AControl: TControl);
var
i: integer;
cControl: TControl;
begin
cControl := Application;
for i := 0 to cControl.Count - 1 do
begin
if cControl.Controls[i] is TForm Then
begin
SetFormStyle(cControl.Controls[i]);
(cControl.Controls[i] as TForm).FormStyle := fsNormal;
end;
end;
(AControl as TForm).FormStyle := fsNormal;
end;
先置为Normal,再
程序没调过,自己条!
var
i: integer;
begin
for i := 0 to (application.ComponentCount - 1) do
begin
if application.Components[i] is TForm then
begin
SetFormStyle(application.Components[i]);
(application.Components[i] as TForm).FormStyle := fsNormal;
end;
end;
end;