function CloseModal: TCloseAction;
System::Uitypes::TCloseAction __fastcall CloseModal();
Prepares a modal form for closing and returns the close action that the form uses.
Do not call CloseModal in your application. CloseModal is used by the the FireMonkey framework when a modal form needs to be closed. CloseModal does not close the form by itself; it simply calls the registered close events and updates the ModalResult property.