close;//form2
form3.formshow();
form3.formshow();
解决方案 »
- 请朋友们给个D7下的函数:PWideChar转PAnsichar的
- 请教:如何实现这种截图?
- 多线程文件搜索的问题,送上全部分了,在线等待!!!!
- Intelement: How to make a window always stay above its owner window ?
- 用Delphi5的前台做一个成绩的数据统计,
- 我的程序运行很慢怎么办?
- 怎样在AcitiveX控件中加入MouseMove事件
- 怎样指定窗口在特定的位置显示?
- 请问怎样在Amazon上买书?
- 发生"missing connection or connectionstring"错误是什么意思?
- 请问是否知道王寒松主页地址??谢谢
- 别人给我一个DLL,我怎么在DELPHI中引用?
if Action=caHide then
begin
Form3.Show;
Close;
end;
Unit1
procedure TForm1.FormClose(Sender: TObject; var Action: TCloseAction);
begin
if Form2 = nil then
Application.CreateForm(TForm2,Form2) ;
Form2.Show;
Freeandnil(Form1);
end;Unit2
procedure TForm2.FormClose(Sender: TObject; var Action: TCloseAction);
begin
if Form3 = nil then
Application.CreateForm(TForm3,Form3) ;
Form3.Show;
Freeandnil(Form2);
end;Unit3
procedure TForm3.FormClose(Sender: TObject; var Action: TCloseAction);
begin
if Form1 = nil then
Application.CreateForm(TForm1,Form1) ;
Form1.Show;
Freeandnil(Form3);
end;
Unit1
procedure TForm1.FormClose(Sender: TObject; var Action: TCloseAction);
begin
if Form2 = nil then
Application.CreateForm(TForm2,Form2) ;
Form2.Show;
Freeandnil(Form1);
end;Unit2
procedure TForm2.FormClose(Sender: TObject; var Action: TCloseAction);
begin
if Form3 = nil then
Application.CreateForm(TForm3,Form3) ;
Form3.Show;
Freeandnil(Form2);
end;Unit3
procedure TForm3.FormClose(Sender: TObject; var Action: TCloseAction);
begin
if Form1 = nil then
Application.CreateForm(TForm1,Form1) ;
Form1.Show;
Freeandnil(Form3);
end;
Unit1
procedure TForm1.FormClose(Sender: TObject; var Action: TCloseAction);
begin
if Form2 = nil then
Application.CreateForm(TForm2,Form2) ;
Form2.Show;
Freeandnil(Form1);
end;Unit2
procedure TForm2.FormClose(Sender: TObject; var Action: TCloseAction);
begin
if Form3 = nil then
Application.CreateForm(TForm3,Form3) ;
Form3.Show;
Freeandnil(Form2);
end;Unit3
procedure TForm3.FormClose(Sender: TObject; var Action: TCloseAction);
begin
if Form1 = nil then
Application.CreateForm(TForm1,Form1) ;
Form1.Show;
Freeandnil(Form3);
end;
begin
Form3.Show;
end;
不过主窗体关闭时程序就会结束.