Hide

SftButton/OCX 3.0 - Button Control

Display
Print

MouseMove Event, SftButton Object

The mouse is moved.

Syntax

VB.NETPrivate Sub object_MouseMoveEvent(ByVal sender As Object, ByVal e As EventArgumentType) Handles object.MouseMoveEvent
VBPrivate Sub object_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal xPos As OLE_XPOS_PIXELS, ByVal yPos As OLE_YPOS_PIXELS)
C#.NETvoid object_MouseMoveEvent(object sender, EventArgumentType e);
VC++void OnMouseMoveobject(short Button, short Shift, OLE_XPOS_PIXELS xPos, OLE_YPOS_PIXELS yPos);
CHRESULT OnMouseMoveobject(short Button, short Shift, OLE_XPOS_PIXELS xPos, OLE_YPOS_PIXELS yPos);

object

A SftButton object.

Button

Describes the button(s) that are pressed. 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. The bits set indicate the button that caused the event.

NameValueDescription
constSftButtonLeftButton1Left button
constSftButtonRightButton2Right button
constSftButtonMiddleButton4Middle button

Shift

Describes the state of the SHIFT, CONTROL and ALT keys. 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. It indicates the state of these keys. Some, all, or none of the bits can be set, indicating which of the keys are pressed.

NameValueDescription
constSftButtonShiftMask1Shift
constSftButtonCtrlMask2Control
constSftButtonAltMask4Alt

xPos

The x-coordinate of the mouse cursor. The units used depend on the container (Visual Basic uses TWIPS, Visual C++ uses pixels, etc.) and the coordinate system used.

yPos

The y-coordinate of the mouse cursor. The units used depend on the container (Visual Basic uses TWIPS, Visual C++ uses pixels, etc.) and the coordinate system used.

Comments

The MouseMove event occurs when the mouse is moved.

The HitTest method can be used to determine what area of the control is at a specific location.

See Also SftButton Object | Object Hierarchy


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