R
redhat2000
Unregistered / Unconfirmed
GUEST, unregistred user!
function bShowIt;
begin
result := assigned(frm);
if result then
begin
if frm.WindowState = wsMinimized then frm.WindowState := wsNormal;
frm.Show;
frm.BringToFront;
end;
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
if bShowit(Form1) then
exit;
Application.CreateForm(TForm1, Form1);
Form1.Show;
end;
procedure TForm1.FormClose(Sender: TObject; var Action: TCloseAction);
begin
Action :=caFree;
Form1 :=nil;
end;
begin
result := assigned(frm);
if result then
begin
if frm.WindowState = wsMinimized then frm.WindowState := wsNormal;
frm.Show;
frm.BringToFront;
end;
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
if bShowit(Form1) then
exit;
Application.CreateForm(TForm1, Form1);
Form1.Show;
end;
procedure TForm1.FormClose(Sender: TObject; var Action: TCloseAction);
begin
Action :=caFree;
Form1 :=nil;
end;