enableMouseEvents

Enable or disable mouse events.
[read/write property] enableMouseEvents([out, retval] VARIANT_BOOL *on) enableMouseEvents([in] VARIANT_BOOL on)
This property enables (if set to true) or disables (if set to false) mouse events.

The events enabled by this property are:

Enabling mouse events will disable XpdfViewer's built-in selection mechanism.

If hyperlinks and mouse events are both enabled, MouseUp2 events will not be triggered if the mouse is over a hyperlink (it will activate the hyperlink instead).

For finer-grained control over mouse events, see enableMouseBtnEvents and enableMouseMoveEvents. enableMouseEvents does not enable mouse wheel events - see enableMouseWheelEvents.

VB6:
viewer.enableMouseEvents = True ... Private Sub viewer_MouseDown2(ByVal button As Integer, ByVal shift As Integer, _ ByVal page As Long, ByVal x As Double, ByVal y As Double) ' button and shift work just like with VB controls ' x and y are in the PDF coordinate space End Sub Private Sub viewer_MouseUp2(ByVal button As Integer, ByVal shift As Integer, _ ByVal page As Long, ByVal x As Double, ByVal y As Double) ' button and shift work just like with VB controls ' x and y are in the PDF coordinate space End Sub Private Sub viewer_MouseDoubleClick2(ByVal button As Integer, ByVal shift As Integer, _ ByVal page As Long, ByVal x As Double, ByVal y As Double) ' button and shift work just like with VB controls ' x and y are in the PDF coordinate space 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) ' button and shift work just like with VB controls ' x and y are in the PDF coordinate space End Sub
MouseDown2
MouseUp2
MouseDoubleClick2
MouseMove2
enableMouseBtnEvents
enableMouseMoveEvents
enableMouseWheelEvents