The global MUI Application object
Source position: MUIClass.Base.pas line 362
var MUIApp: TMUIApplication = Nil; |
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.
|
Run the application. |