ImageGear Professional for Windows ActiveX
PreCreateNotify Event

Description:

This event is raised at the beginning of the process of creating a mark.

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 at the very beginning of 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 PreCreateNotify(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 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 the 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