MouseMove2

Mouse movement event.
[event] MouseMove2([in] short button, [in] short shift, [in] int page, [in] double x, [in] double y)
This event will be called when the user moves the mouse.

Mouse events must be enabled first - see enableMouseEvents and enableMouseMoveEvents.

The event will be called with five arguments:

VB6:
' this implements a mouse-pan feature with the left button viewer.enableMouseEvents = True panSpeed = 2 ... Private Sub viewer_MouseDown2(ByVal button As Integer, ByVal shift As Integer, _ ByVal page As Long, ByVal x As Double, ByVal y As Double) If button = 1 Then viewer.convertPDFToWindowCoords2 page, x, y, panX, panY End If End Sub Private Sub viewer_MouseMove2(ByVal button As Integer, ByVal shift As Integer, _ ByVal page As Long, ByVal x As Double, ByVal y As Double) Dim wx As Long, wy As Long If button = 1 Then viewer.convertPDFToWindowCoords2 page, x, y, wx, wy viewer.scrollBy -panSpeed * (wx - panX), -panSpeed * (wy - panY) panX = wx panY = wy End If End Sub
MouseDown2
MouseUp2
MouseDoubleClick2
enableMouseEvents
enableMouseMoveEvents
MouseMoveWin