Hide

SftTree/OCX 7.5 - ActiveX Tree Control

Display
Print

MouseMove Event, SftTree 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 x As OLE_XPOS_PIXELS, ByVal y As OLE_YPOS_PIXELS)
C#.NETvoid object_MouseMoveEvent(object sender, EventArgumentType e);
VC++void OnMouseMoveobject(short Button, short Shift, OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y);
CHRESULT OnMouseMoveobject(short Button, short Shift, OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y);

object

A SftTree object.

Button

The button that is pressed during the event (see SftTreeButtonConstants). 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
constSftTreeLeftButton1The left mouse button was pressed.
constSftTreeRightButton2The right mouse button was pressed.
constSftTreeMiddleButton4The middle mouse button was pressed.

Shift

The state of the SHIFT, CONTROL and ALT keys during the event (see SftTreeKeyConstants). 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
constSftTreeShiftMask1The SHIFT key was pressed.
constSftTreeCtrlMask2The CONTROL key was pressed.
constSftTreeAltMask4The ALT key was pressed.

x

The x coordinate of the mouse cursor.

y

The y coordinate of the mouse cursor.

Comments

The MouseMove event occurs when the mouse is moved.

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

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 ItemClick event should be used if specific information about the logical position of the mouse cursor is needed.

See Also SftTree Object | Object Hierarchy


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


Spring Break!

Our offices will be closed this week (March 18 through March 22).

We'll be back March 24 to address any pending sales and support issues.