IDMApplicationEvents

IDMApplicationEvents interface implemented by DMApplication object (currently not available for in-process scripting from script window). Note that not all automation controllers can handle events.

Event event OnCreateDocument(document: IDispatch)

Fired when new document window is created. Parameter "document" return DMDocument object for this window.

Event event OnCloseDocument(document: IDispatch)

Fired when document window is closed. "Document" points to DMDocument object being closed. These two events may be used to syncronize window lists in DM2000 and automation controller.

Event event OnCommand(command: bstr)

This event provides feedback from DM2000 to automation controller.