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

TMUIApplication.Terminate

Terminate the currently running application

Declaration

Source position: MUIClass.Base.pas line 224

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

Documentation generated on: 2024-12-22