Hide

SftPrintPreview/OCX 1.0 - ActiveX Print Preview Control

Display
Print

SftPrintPreview.MouseUp Event

A mouse button is released.

Syntax

VB.NETPrivate Sub object_MouseUpEvent(ByVal sender As Object, ByVal e As EventArgumentType) Handles object.MouseUpEvent
VBPrivate Sub object_MouseUp(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As OLE_XPOS_PIXELS, ByVal Y As OLE_YPOS_PIXELS)
C#.NETvoid object_MouseUpEvent(object sender, EventArgumentType e);
VC++void OnMouseUpobject(short Button, short Shift, OLE_XPOS_PIXELS X, OLE_YPOS_PIXELS Y);
CHRESULT OnMouseUpobject(short Button, short Shift, OLE_XPOS_PIXELS X, OLE_YPOS_PIXELS Y);

object

A SftPrintPreview object.

Button

The button that is pressed during the event (see SftControlButtonConstants). The button argument is a bit field with bits corresponding to the left button, right button and middle button. These bits correspond to the values shown below. Only one of the bits is set, indicating the button that caused the event.

ButtonValueDescription
constSftControlLeftButton1The left mouse button was pressed.
constSftControlRightButton2The right mouse button was pressed.
constSftControlMiddleButton4The middle mouse button was pressed.

Shift

The state of the SHIFT, CONTROL and ALT keys during the event (see SftControlKeyConstants). A bit is set if the key is down. The Shift argument is a bit field with bits corresponding to the SHIFT, CONTROL and ALT keys. The Shift variable indicates the state of these keys. Some, all, or none of the bits can be set, indicating which of the keys are pressed.

ShiftValueDescription
constSftControlShiftMask1The SHIFT key was pressed.
constSftControlCtrlMask2The CONTROL key was pressed.
constSftControlAltMask4The ALT key was pressed.

X

The x coordinate of the mouse cursor when the button was released.

Y

The y coordinate of the mouse cursor when the button was released.

Comments

The MouseUp event occurs when a mouse button is released.

The HitTest method can be used to determine where the mouse cursor is located.

See Also SftPrintPreview Object | Object Hierarchy


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.