通用窗口创建
//==============================================================================
// if mark=0 then Tform.show else Tform.showmodal
//==============================================================================
procedure OpenChildForm(FormClass:TFormClass;var Form:TForm;Mark:Integer=0);
begin
if Mark=0 then
begin
if not Assigned(form) then Application.CreateForm(FormClass,Form);
if Form.WindowState=wsminimized then Form.WindowState:=wsMaximized;
end else begin
form:=FormClass.Create(nil);
Form.ShowModal;
Form.Free;
end;
end;
本文来自博客园,作者:{咏南中间件},转载请注明原文链接:https://www.cnblogs.com/hnxxcxg/archive/2008/01/24/2940908.html