ImageGear Professional for Windows ActiveX
CreateNotify Event

Description:

Raised when you create a mark and when you load the .ART file. When you load the .ART file, this event is called once for each mark in the file. In most cases, when you create a mark or load an .ART file, a ModifyNotify Event is also raised.

The following types of marks do not generate a ModifyNotify Event when they are created or loaded:

The rest of the marks cause a ModifyNotify Event to process, because of the internal handling of the load processing.

Your event handler determines whether the mark is created or not. If CreateFlag is set to True, the mark is created; if CreateFlag is set to False, the mark is not created.

This event occurs part-way through the actual creation of the mark. For example, if the user is creating a Typed Text mark, PreCreateNotify Event is raised when the mouse is first pressed. The location where the mouse was pressed becomes the upper-left corner of the mark. The point where the user releases the mouse button becomes the lower-right corner. At that time CreateNotify Event is raised. The user then types the text into the mark, and then clicks the mouse- button again. At that time PostCreateNotify Event is raised.

Syntax:

Sub CreateNotify(pPage As IGArtPage, MarkIndex As Long, MarkType
As Long, CreateFlag As IGArtEventParams)

Parameters:

Name Description
pPage The IGArtPage Object in which the mark will be created.
MarkIndex The index that will be assigned to the new mark, if it is successfully created.
MarkType The type of the new mark - an enumIGArtMarkType Enumeration value. Note that there is no markSelect Method type mark - that value is used to identify the Select button on the ToolBar.
CreateFlag Your event handler should set longParam member of IGArtEventParams Class to 1 to tell ImageGear to continue process of the mark creation, or set it to 0 to tell ImageGear to stop the mark creation.

Sample:

None

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback