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

MUIApp

The global MUI Application object

Declaration

Source position: MUIClass.Base.pas line 362

var MUIApp: TMUIApplication = Nil;

Description

This Application object is created at start of the program and destroyed on it's end. Create some Windows they will be automatically connected to the application

Window := TMUIWindow.Create;

and start the application with

MUIApp.Run;

You can terminate the application by closing the main window e.g. TMUIWindow(MUIApp.MainWindow).Close() or by calling MUIApp.Terminate()

Example:

program HelloWorld;
uses
  MUIClass.Window, MUIClass.Area, MUIClass.Base;
begin
  with TMUIText.Create do
  begin
    Contents := 'Hello World';
    Parent := TMUIWindow.Create;
  end;
  MUIApp.Run;
end.

See also

MUIApp.Run

  

Run the application.


Documentation generated on: 2024-03-28