FMX.Forms.TApplication.Terminated
Delphi
property Terminated: Boolean read FTerminate write FTerminate;
C++
__property bool Terminated = {read=FTerminate, write=FTerminate, nodefault};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | FMX.Forms.pas FMX.Forms.hpp |
FMX.Forms | TApplication |
Description
Reports whether the application is in the process of shutting down.
Terminated is used when calling the ProcessMessages method so that the application does not perform unnecessary actions after the shut-down process has been triggered. ProcessMessages sets Terminated to True when it receives a WM_QUIT
message.
An application usually receives a WM_QUIT
message because the main window of the application has closed, or because the Terminate method has been called.
Tip: For applications using calculation-intensive loops, call ProcessMessages periodically, and also check Terminated to determine whether to abort the calculation and allow the application to terminate.