MouseDoubleClickWin

Mouse button double-click event with window coordinates.
[event] MouseDoubleClickWin([in] short button, [in] short shift, [in] int winX, [in] int winY)
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 four arguments:

Window coordinates can be converted to PDF coordinates with convertWindowToPDFCoords2.

This event is similar to MouseDoubleClick2, except that (a) it is called with window coordinates instead of PDF coordinates, and (b) it will be called even if the mouse is clicked outside of a PDF page.

VB6:
viewer.enableMouseEvents = True viewer.enableMouseMoveEvents = True ... Private Sub viewer_MouseDownWin(ByVal button As Integer, ByVal shift As Integer, _ ByVal winX As Long, ByVal winY As Long) Dim pg As Long, x As Double, y As Double viewer.convertWindowToPDFCoords2 winX, winY, pg, x, y ' ... use pg, x, y ... ' capture the mouse so we receive MoveWin and UpWin events outside the window SetCapture viewer.windowHandle End Sub Private Sub viewer_MouseUpWin(ByVal button As Integer, ByVal shift As Integer, _ ByVal winX As Long, ByVal winY As Long) ' release the capture that was initiated in MouseDownWin ReleaseCapture Dim pg As Long, x As Double, y As Double viewer.convertWindowToPDFCoords2 winX, winY, pg, x, y ' ... use pg, x, y ... End Sub Private Sub viewer_MouseMoveWin(ByVal button As Integer, ByVal shift As Integer, _ ByVal winX As Long, ByVal winY As Long) Dim pg As Long, x As Double, y As Double viewer.convertWindowToPDFCoords2 winX, winY, pg, x, y ' ... use pg, x, y ... End Sub Private Sub viewer_MouseDoubleClickWin(ByVal button As Integer, ByVal shift As Integer, _ ByVal winX As Long, ByVal winY As Long) Dim pg As Long, x As Double, y As Double viewer.convertWindowToPDFCoords2 winX, winY, pg, x, y ' ... use pg, x, y ... End Sub
MouseDownWin
MouseUpWin
MouseMoveWin
enableMouseEvents
enableMouseBtnEvents
convertWindowToPDFCoords2
MouseDoubleClick2