Skip to content

MouseMove Event

Description

Occurs when the mouse pointer is moved anywhere over the GridControl.

Syntax

Public Event MouseMove( _
    ByVal [Button](#) As Integer, _
    ByVal [Shift](#) As Integer, _
    ByVal [x](#) As Long, _
    ByVal [y](#) As Long _
)

Parameters

  • Button
    Code indicating which button on the mouse was pressed.

  • Shift
    Specifies whether the Shift, Ctrl, or ALT keys were pressed when the mouse is moved.

  • x
    X coordinate of the mouse pointer.

  • y
    Y coordinate of the mouse pointer.

Remarks

Below are the meanings of mouse button codes:

Button Value Code
Left Mouse Button 1
Right Mouse Button 2

Any combination of the Shift, Alt, and Ctrl keys can be used. The table below shows the possible values for the Shift parameter:

Shift Parameter Value Bit Mask
Shift 1
Ctrl 2
Shift + Ctrl 3
Alt 4
Alt + Shift 5
Alt + Ctrl 6
Shift + Alt + Ctrl 7

See Also

TrackControl Control


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.