Hm... ob bei caMinimize oder caHide wird dir Form immer geschlossen.
Delphi-Quellcode:
procedure TForm1.FormClose(Sender: TObject; var Action: TCloseAction);
begin
Action:= caMinimize;
end;
Delphi-Quellcode:
procedure TForm1.FormClose(Sender: TObject; var Action: TCloseAction);
begin
Action:= caHide;
end;