Hide

SftPrintPreview/OCX 1.0 - ActiveX Print Preview Control

Display
Print

SftPrintPreview.MouseDown Event

A mouse button is pressed.

Syntax

VB.NETPrivate Sub object_MouseDownEvent(ByVal sender As Object, ByVal e As EventArgumentType) Handles object.MouseDownEvent
VBPrivate Sub object_MouseDown(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As OLE_XPOS_PIXELS, ByVal Y As OLE_YPOS_PIXELS)
C#.NETvoid object_MouseDownEvent(object sender, EventArgumentType e);
VC++void OnMouseDownobject(short Button, short Shift, OLE_XPOS_PIXELS X, OLE_YPOS_PIXELS Y);
CHRESULT OnMouseDownobject(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 pressed.

Y

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

Comments

The MouseDown event occurs when a mouse button is pressed.

The MouseDown event can be used by an application to handle mouse button clicks in combination with keyboard modifiers such as the SHIFT, CONTROL and ALT keys.

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.