Terminate the currently running application
Source position: MUIClass.Base.pas line 224
public procedure TMUIApplication.Terminate; |
It will not terminate immedately, it will terminate when it reaches the event loop again. Only effective after Run() was started.
Example:
// Event connected to a Button procedure TMyWindow.CloseButtonEvent(Sender: Object begin MUIApp.Terminate; // kill the application end;