TCloseEvent = procedure (Sender: TObject; var Action: TCloseAction)
Событие закрытия окна.
Параметры:
Ссылки: TForm.OnClose