MarkSelect Event

This event occurs immediately after the end user or program selects an annotation mark.

Applies To

Image Edit control

Syntax

Sub object_MarkSelect(Button,Shift,Left,Top,Width,Height,MarkType,GroupName)

Arguments

Parameter

Data Type

Setting

Button

Integer
(enumerated)

Specifies the mouse button pressed:

1 -- Left button
2 -- Right button
4 -- Middle button

Shift

Integer
(enumerated)

Specifies whether the Shift, Ctrl, or Alt key is pressed:

1 -- Shift key
2 -- Ctrl key
4 -- Alt key

Left

Long

The beginning horizontal position within the image in image pixels

Top

Long

The beginning vertical position within the image in image pixels

Width

Long

The ending horizontal position within the image in image pixels

Height

Long

The ending vertical position within the image in image pixels

MarkType

Integer

The AnnotationType of the annotation mark (except for the Select Annotations annotation type)

GroupName

String

The name of the annotation group to which the annotation belongs


AnnotationType Argument

Setting

Description

0

None

1

Straight Line

2

Freehand Line

3

Hollow Rectangle

4

Filled Rectangle

5

Image Embedded

6

Image Reference

7

Text

8

Text Stamp

9

Text From File

10

Attach-a-Note

11

Select Annotations


Remarks

If multiple annotations are selected, a MarkType parameter value of 0 is returned.

The GroupName parameter is an empty string when multiple annotations are selected.

See Also

Annotation topics in Imaging Concepts

SelectAnnotationGroup method