OnSelection

This event triggers when a selection object is created or changed.

Syntax

OnSelection (mode As CroViewerSelectionMode, left As Long, top As Long, width As Long, height As Long, bHandled As Boolean)
Parameter Description

mode

Current state of selection event

Possible values

See CroViewerSelectionMode

left

Left coodinate in pixels

top

Top coodinate in pixels

width

Width of the selection rectangle

height

Height of the selection rectangle

bHandled

True when the event was processed.