Event handler for closing the form
Source position: forms.pp line 595
public property TCustomForm.OnClose: TCloseEvent read FOnClose write FOnClose stored IsForm;