if frm_MDIChild <> nil then if frm_MDIChild.showing then 什么也不用干 else frm_MDIChild.show else begin frm_MDIChild := Tfrm_MDIChild.Create(nil); frm_MDIChild.show; end;
if (not assgined(form)) or (form=nil) then form:=tform.create;
begin if application.FindComponent('Form1')=nil then begin Application.CreateForm(TForm1, Form1); Form1.ShowModal; end else Form1.ShowModal; end;
if form1 = nil then form1 = TFrom1.Create(application); form1.show;
if frm_MDIChild.showing then
什么也不用干
else frm_MDIChild.show
else begin
frm_MDIChild := Tfrm_MDIChild.Create(nil);
frm_MDIChild.show;
end;
form:=tform.create;
if application.FindComponent('Form1')=nil then
begin
Application.CreateForm(TForm1, Form1);
Form1.ShowModal;
end
else
Form1.ShowModal;
end;
form1 = TFrom1.Create(application);
form1.show;