mdm.Application


Objects
The following table lists the objects for the Application class

Method Description Availability
Kiosk Kiosk Object
Library Library Object
Screensaver Screensaver Object
Timer Timer Object
Trial Trial Object


Methods
The following table lists the methods for the Application class

Method Description Availability
Application.bringToFront() Causes your application to become a top-most window (it will appear above all non-topmost windo...
Application.createForm() Creates a new Form and returns a boolean indicating whether or not the Form has been created su...
Application.delay() This command pauses all execution in the form it is called from, for the specified time in mili...
Application.doEvents() Processes any system messages in the system message queue.
Application.enableExitHandler() When executed, application will catch an external exit command and either call registered liste...
Application.exit() Exits the application. The user could be provided with optional dialog to ensure that she/he wa...
Application.exitWithCode() Exits the Projector and sets the System Exit Code to the value defined in exitCode. That way yo...
Application.getCMDParams() Retrieves the specified command line parameter set when the application has been executed. Comm...
Application.getEnvVar() Returns an environment variable.
Application.getFormNames() Returns an array containing a list of the names all of the Forms currently in use in the applic...
Application.getGlobalVar() Returns the value of the specified global variable from the application.
Application.getSecureVar() Returns the value of the specified secure variable from the application.
You could use Secu...
Application.init() Initialises {mdm}Scriptâ„¢. This is required in 4.0 for applications programmed in ActionScript...
Application.maximize() Maximizes the application window to cover available screen area. The area covered by applicatio...
Application.minimize() Minimizes the application window using system native behavior. For example application is minim...
Application.minimizeToTray() Determines whether or not the application will minimize to the system tray when a minimize comm...
Application.printVar() Prints the specified string. The 'showPrintDialog' parameter determines whether or not to show ...
Application.restore() Restores the application window state to its original size and state. For example when applicat...
Application.say() Uses the system text2speech capabilities to 'say' the specified string.
This method is sync...
Application.sayAsync() Uses the system text2speech capabilities to 'say' the specified string.
This method returns...
Application.sendToBack() Causes the application to become a non-topmost window (it will appear behind all topmost windows).
Application.setEnvVar() Sets (or creates if not declared), an environment variable to the specified value. You could u...
Application.shake() Shakes the Form the amount of times specified.

Properties
The following table lists the properties for the Application class

Method Description Availability
Application.filename Contains the application's file name.
Application.isMinimized Contains a boolean indicating whether or not ...
Application.path Contains the application's path in platform O...
Application.title Contains the application's title - text shown...

Events
The following table lists the events for the Application class

Method Description Availability
onAppChangeFocus Dispatched when focus with the application ch...
onAppExit Dispatched when the user attempts to exit the...
onAppMinimize Dispatched when the application is minimized.
onAppRestore Dispatch when the application is restored.
onBottomHit Dispatched when the current Form touches the ...
onDragDrop Dispatched when the user drags and drops a fi...
onFormChangeFocus Dispatched when there is a change of focus wi...
onFormClose Dispatched when the current Form is closed.
onFormMaximize Dispatched when the current Form is maximized...
onFormMinimize Dispatched when the current Form is Minimized...
onFormReposition Dispatched when the current Form is repositio...
onFormResize Dispatched when the current Form is resized.
onFormRestore Dispatched when the current Form is restored.
onLeftHit Dispatched when the current Form touches the ...
onRightHit Dispatched when the current Form touches the ...
onSayComplete dispatched when mdm.Application.sayAsync meth...
onSplashClosed Dispatched when a custom splash screen closes...
onTopHit Dispatched when the current Form touches the ...