Skip to main content
Known Participant
August 9, 2019
Answered

How to handle double click on annotation

  • August 9, 2019
  • 1 reply
  • 519 views

Hi! If we want to handle simple click , we can do

  • Handle mouse clicks in the annotation by using the AVAnnotHandlerDoClickProc callback method.

But if we want to handle double-click , what callback method should I use ?

This topic has been closed for replies.
Correct answer ls_rbls

Hi,

 

In the Adobe API Reference , page 984:

 

https://www.adobe.com/content/dam/acom/en/devnet/acrobat/pdfs/APIReference.pdf

 

See where it says :

 

 

Parameters:

annotHandler The annotation handler responsible for this annotation.
hitAnnot The annotation in which the mouse was clicked.
pageView The AVPageView in which the annotation is located.
annotHandler The annotation handler responsible for this annotation.
hitAnnot The annotation in which the mouse was clicked.
pageView The AVPageView in which the annotation is located.
xHit The x-coordinate of the mouse click.
yHit The y-coordinate of the mouse click.
flags Indicates which modifier keys are pressed. Must be an OR of the Modifier Keys values. clickNo 1 if this is a single click, 2 if a double click, 3 if triple click.

1 reply

ls_rbls
ls_rblsCorrect answer
Community Expert
October 22, 2019

Hi,

 

In the Adobe API Reference , page 984:

 

https://www.adobe.com/content/dam/acom/en/devnet/acrobat/pdfs/APIReference.pdf

 

See where it says :

 

 

Parameters:

annotHandler The annotation handler responsible for this annotation.
hitAnnot The annotation in which the mouse was clicked.
pageView The AVPageView in which the annotation is located.
annotHandler The annotation handler responsible for this annotation.
hitAnnot The annotation in which the mouse was clicked.
pageView The AVPageView in which the annotation is located.
xHit The x-coordinate of the mouse click.
yHit The y-coordinate of the mouse click.
flags Indicates which modifier keys are pressed. Must be an OR of the Modifier Keys values. clickNo 1 if this is a single click, 2 if a double click, 3 if triple click.