Programmer's Guide > Programming and Scripting Techniques > Events > Event Types > ApplicationEvent Module
  
ApplicationEvent Module
The ApplicationEvent extension to the ApplicationEvent interface includes the following event types:
ApplicationLoad
The ApplicationLoad event occurs after Arbortext Editor is initialized and all the startup files in the custom directories have been executed. There is no ACL callback equivalent for this event.
ApplicationEvent event listeners need to be registered before Arbortext software is fully loaded. Therefore, a good place to register an ApplicationLoad event listener is in a startup file in the custom directory.
Bubbles: No
Cancelable: No
Context Info: None
ApplicationClosing
The ApplicationClosing event occurs when the user closes down the Arbortext software. This event type is similar to the ACL session quit callback.
This event type is cancelable. If an event listener calls the preventDefault method, the closing will be cancelled.
The detail indicates whether the Arbortext software will prompt for document changes or not:
0: prompts for any changes.
1: saves all modified documents without prompting.
2: doesn't prompt for unsaved changes and quits without saving modified documents.
Bubbles: No
Cancelable: Yes
Context Info: detail