SelectionRectDrawn Event

Example-VB Example-VC++

This event occurs immediately after the end user presses the left mouse button, or the DrawSelectionRect method is invoked.

Available With

Ö Imaging for Windows Professional Edition V1.0, V1.1, and V2.0
Ö Imaging for Windows 95 and 98
Ö Imaging for Windows NT 4.0

Applies To

Image Edit control

Syntax

Sub object_SelectionRectDrawn(Left,Top,Width,Height)

Arguments

Parameter Data Type Setting

Left Long The beginning horizontal position within the image in image pixels relative to the upper-left corner of the Image Edit display window
Top Long The beginning vertical position within the image in image pixels relative to the upper-left corner of the Image Edit display window
Width Long The ending horizontal position within the image in image pixels relative to the upper-left corner of the Image Edit display window
Height Long The ending vertical position within the image in image pixels relative to the upper-left corner of the Image Edit display window

Remarks

The SelectionRectangle property must be set to True for this event to be triggered.

If the end user draws a selection rectangle of 3 pixels or less, no selection rectangle is drawn.  When this happens, the SelectionRectDrawn event is still triggered, but all of its parameters contain a value of 0.  Your program can use these 0 values to determine whether cut, copy, or delete operations should be enabled.