ImageGear Professional for Windows ActiveX
Creating a Mark via the ToolBar

End users can create a mark using the ART toolbar, or your application can create them directly by calling ART functions. This section describes how to create marks with user interaction through the ART toolbar.

When a button is selected from the toolbar, ART goes into "edit mode", where the mouse is used to place and size the mark. The sequence of events depends on whether the mark is one of the types that contains text or not:

If the mark does not contain text:

  1. User drags a rectangle on the image.
  2. Mark is placed and sized on the image, and is selected.
  3. Control returns to the application.

If the mark contains text:

  1. User drags a rectangle on the image.
  2. Mark is placed and sized on the image, and is placed in text-edit mode.
  3. Blinking "I-Beam" insertion point is placed in the mark.
  4. User types text into the mark, as desired.
  5. User clicks the mouse-button. Mark goes from text-edit mode to selected.
  6. Control returns to the application.

ART ToolBar event handlers are implemented in the ART GUI open source code and can be modified at any time and any way, but in order for them to work, your application need to interact with the following events:

 
Copy Code
Sub MouseDown (pIDrawParams As IGArtXDrawParams, nMessage As
Long, pPoint As IGPoint)
Sub MouseMove (pIDrawParams As IGArtXDrawParams, nMessage As
Long, pPoint As IGPoint)
Sub MouseUp (pIDrawParams As IGArtXDrawParams, nMessage As Long,
pPoint As IGPoint)

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback