在form的close事件里写 Action:=caMinimize 想关闭的话设置个BOOLEAN变量 var kaiguan:boolean; procedure TForm1.FormClose(Sender: TObject; var Action: TCloseAction); begin if kaiguan=false then Action:=caMinimize; else Action:=cafree; end;
在form的close事件里写 Action:=caMinimize 想关闭的话设置个BOOLEAN变量 var kaiguan:boolean; procedure TForm1.FormClose(Sender: TObject; var Action: TCloseAction); begin if kaiguan=false then Action:=caMinimize; else Action:=cafree; end;
想关闭的话设置个BOOLEAN变量
var kaiguan:boolean;
procedure TForm1.FormClose(Sender: TObject; var Action: TCloseAction);
begin
if kaiguan=false then
Action:=caMinimize;
else
Action:=cafree;
end;
想关闭的话设置个BOOLEAN变量
var kaiguan:boolean;
procedure TForm1.FormClose(Sender: TObject; var Action: TCloseAction);
begin
if kaiguan=false then
Action:=caMinimize;
else
Action:=cafree;
end;