Unit 'MUIClass.Base' Package
[Overview][Types][Classes][Procedures and functions][Variables][Index] [#MUIClass]

TMUIApplication.Terminate

Terminate the currently running application

Declaration

Source position: MUIClass.Base.pas line 173

public procedure TMUIApplication.Terminate;

Description

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: TObject);
begin
  MUIApp.Terminate; // kill the application
end;

Documentation generated on: 2021-05-11