MouseDoubleClick2
Mouse button double-click event.
[event]
MouseDoubleClick2([in] short button, [in] short shift, [in] int page, [in] double x, [in] double y)
This event will be called when the user double-clicks a mouse button.
Mouse events must be enabled first - see enableMouseEvents
and
enableMouseBtnEvents
.
The event will be called with five arguments:
button
: the mouse button number - one ofvbLeftButton
,vbMiddleButton
, orvbRightButton
shift
: the shift/control/alt bit mask, which contains zero or more bit flags fromvbShiftMask
,vbCtrlMask
, andvbAltMask
page
: the page number where the mouse button was clickedx, y
: the position where the mouse button was clicked, in PDF coordinates
VB:
viewer.enableMouseEvents = True
...
Private Sub viewer_MouseDown2(button As Integer, shift As Integer, _
page As Long, x As Double, y As Double) _
Handles viewer.MouseDown2
' button and shift work just like with VB controls
' x and y are in the PDF coordinate space
End Sub
Private Sub viewer_MouseUp2(button As Integer, shift As Integer, _
page As Long, x As Double, y As Double) _
Handles viewer.MouseUp2
' button and shift work just like with VB controls
' x and y are in the PDF coordinate space
End Sub
Private Sub viewer_MouseDoubleClick2(button As Integer, shift As Integer, _
page As Long, x As Double, y As Double) _
Handles viewer.MouseDoubleClick2
' button and shift work just like with VB controls
' x and y are in the PDF coordinate space
End Sub
Private Sub viewer_MouseMove2(button As Integer, shift As Integer, _
page As Long, x As Double, y As Double) _
Handles viewer.MouseMove2
' button and shift work just like with VB controls
' x and y are in the PDF coordinate space
End Sub