dsApplicationEvent_id_e Enumeration Send Feedback
See Also 
Types of DraftSight application events.

Syntax

Visual Basic 
Public Enum dsApplicationEvent_id_e 
   Inherits System.Enum
C# 
public enum dsApplicationEvent_id_e : System.Enum 
JavaScript 
dsApplicationEvent_id_e : String
COM native C++ 
enum dsApplicationEvent_id_e
C++ 
enum dsApplicationEvent_id_e

Members

MemberDescription
dsApplication_ActiveDocumentChangedNotify_id5 = ActiveDocumentChangedNotify
dsApplication_ApplicationOptionBoolChangeNotify_id9 = ApplicationOptionBoolChangeNotify
dsApplication_ApplicationOptionDoubleChangeNotify_id12 = ApplicationOptionDoubleChangeNotify
dsApplication_ApplicationOptionInt16ChangeNotify_id10 = ApplicationOptionInt16ChangeNotify
dsApplication_ApplicationOptionInt32ChangeNotify_id11 = ApplicationOptionInt32ChangeNotify
dsApplication_ApplicationOptionStringChangeNotify_id13 = ApplicationOptionStringChangeNotify
dsApplication_CommandCancelNotify_id8 = CommandCancelNotify
dsApplication_CommandPostNotify_id7 = CommandPostNotify
dsApplication_CommandPreNotify_id6 = CommandPreNotify
dsApplication_DestroyNotify_id4 = DestroyNotify
dsApplication_FileNewNotify_id1 = FileNewNotify
dsApplication_FileOpenPostNotify_id3 = FileOpenPostNotify
dsApplication_FileOpenPreNotify_id2 = FileOpenPreNotify
dsApplication_OnIdleNotify_id14 = OnIdleNotify

Remarks

To receive notifications, a DLL application must register for the notifications by object type. This registration must be done for each instance of a particular object.

For example, the file:

BEGIN_SINK_MAP(CDsAddinConnection)

SINK_ENTRY_EX(IDC_DSAPPLICATIONEVENT, DIID__IApplicationEvents, dsApplication_FileNewNotify_id, OnFileNewNotify)

SINK_ENTRY_EX(IDC_DSAPPLICATIONEVENT, DIID__IApplicationEvents, dsApplication_FileOpenPreNotify_id, OnFileOpenPreNotify)

SINK_ENTRY_EX(IDC_DSAPPLICATIONEVENT, DIID__IApplicationEvents, dsApplication_FileOpenPostNotify_id, OnFileOpenPostNotify) 

SINK_ENTRY_EX(IDC_DSAPPLICATIONEVENT, DIID__IApplicationEvents, dsApplication_ActiveDocumentChangedNotify_id, OnActiveDocumentChangedNotify)

END_SINK_MAP()

myApplication(dsApplication_c *dsApp) : m_dsApp(dsApp) {

RegisterApplicationFileNewNotifyHook(m_dsApp);

RegisterApplicationFileOpenPreNotifyHook(m_dsApp);

...

}

 

~myApplication() {

UnRegisterApplicationFileNewNotifyHook(m_dsApp);

UnRegisterApplicationFileOpenPreNotifyHook(m_dsApp);

...

}

See Also