Application

The Application class manage the whole program, it can be used for load embedded resources, close the program, get the current path and so on. Internally in initialize manifest (if available), DLLs, and it handle exceptions showing a window with exception information.

Members

Properties

executablePath
string executablePath [@property getter]
resources
Resources resources [@property getter]

This property allows to load embedded resources.

startupPath
string startupPath [@property getter]
tempPath
string tempPath [@property getter]

This method calls GetTempPath() API

Static functions

exit
void exit(int exitCode = 0)

Close the program.

run
int run(Form mainForm)

Start the program and adds onClose() event at the MainForm

showExceptionForm
DialogResult showExceptionForm(Throwable e)

When an exception was thrown, the Application class call this method showing the exception information, the user has the choice to continue the application or terminate it.

Meta