I have implemented the active X control PDFXCviewAx.dll 2.5.207.
When the user adds annotation Markups and Comments, I would like to disable the popup Comment available when the user double clicks on the markup item (line, square, circle, etc.). I have custom made stamps created with the markup tool and i don't want the user to add comments to these annotation markups. I am not so worried if they add them on their own markups.
John Pay
Disable commenting on annotation markups
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Stefan - PDF-XChange
-
Johniola
- User
- Posts: 4
- Joined: Thu Nov 15, 2012 6:15 pm
-
Stefan - PDF-XChange
- Site Admin
- Posts: 19939
- Joined: Mon Jan 12, 2009 8:07 am
Re: Disable commenting on annotation markups
Hello John Pay,
Please try to disable these two commands:
AddNote ID: 33135
AddNoteToSelText ID: 33207
Check section 3.5 of the Viewer AX manual for examples on "How to Disable a Command?"
Best,
Stefan
Please try to disable these two commands:
AddNote ID: 33135
AddNoteToSelText ID: 33207
Check section 3.5 of the Viewer AX manual for examples on "How to Disable a Command?"
Best,
Stefan
-
Johniola
- User
- Posts: 4
- Joined: Thu Nov 15, 2012 6:15 pm
Re: Disable commenting on annotation markups
Thanks Stephan
I implemented your suggestion and it did not work. I used the commands :
objPDF.SetProperty("Commands[#33135].State", "offline", 0); // AddNote - 33135
objPDF.SetProperty("Commands[#33207].State", "offline", 0); // AddNoteToSelText - 33207
with no luck.
I also implement these and they are working as the associated menu item is unavailable from the right click context menu
objPDF.SetProperty("Commands[#33122].State", "offline", 0); // OpenPopup - 33122
objPDF.SetProperty("Commands[#33174].State", "offline", 0); // AddReply - 33174
objPDF.SetProperty("Commands[#33121].State", "offline", 0); // ResetPopupLocation - 33121
John
I implemented your suggestion and it did not work. I used the commands :
objPDF.SetProperty("Commands[#33135].State", "offline", 0); // AddNote - 33135
objPDF.SetProperty("Commands[#33207].State", "offline", 0); // AddNoteToSelText - 33207
with no luck.
I also implement these and they are working as the associated menu item is unavailable from the right click context menu
objPDF.SetProperty("Commands[#33122].State", "offline", 0); // OpenPopup - 33122
objPDF.SetProperty("Commands[#33174].State", "offline", 0); // AddReply - 33174
objPDF.SetProperty("Commands[#33121].State", "offline", 0); // ResetPopupLocation - 33121
John
Last edited by Johniola on Thu Dec 13, 2012 5:30 pm, edited 1 time in total.
-
Johniola
- User
- Posts: 4
- Joined: Thu Nov 15, 2012 6:15 pm
Re: Disable commenting on annotation markups
Maybe I should be a little more clear. The menu items are disabled from the context sensitive menu. If I double click the Markup item, the annotation popup note is still accessible.
John
John
-
Stefan - PDF-XChange
- Site Admin
- Posts: 19939
- Joined: Mon Jan 12, 2009 8:07 am
Re: Disable commenting on annotation markups
Hi John,
You might need to handle double click events and check whether the active element is an annotation - and if it is - just tell the Viewer to ignore that double click (check section "2.2.2.10.8 Mouse" of the Viewer AX manual for handling mouse events), but I will also check with the project team to see if there's another solution in your case.
Best,
Stefan
You might need to handle double click events and check whether the active element is an annotation - and if it is - just tell the Viewer to ignore that double click (check section "2.2.2.10.8 Mouse" of the Viewer AX manual for handling mouse events), but I will also check with the project team to see if there's another solution in your case.
Best,
Stefan
-
Johniola
- User
- Posts: 4
- Joined: Thu Nov 15, 2012 6:15 pm
Re: Disable commenting on annotation markups
Stephan,
After some digging I found this in another topic.
https://forum.pdf-xchange.com/ ... uble+click
Happy Happy
thanks for your help.
John Pay
After some digging I found this in another topic.
Code: Select all
ctrl.SetProperty("Commenting.AllowOpenPopupsByDblClick", "false", 0);Happy Happy
thanks for your help.
John Pay
-
John - Tracker Supp
- Site Admin
- Posts: 5225
- Joined: Tue Jun 29, 2004 10:34 am
Re: Disable commenting on annotation markups
Pleased you got there John 
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.
Best regards
Tracker Support
http://www.tracker-software.com
Best regards
Tracker Support
http://www.tracker-software.com