I have a scenario where I need to change Locked flag on an annotation if it is a copy of an existing annot e.g. if the user selected an annot, copy and then pasted.
Is there a way I can tell if this is the situation, so that on the op.annots.addNew I can change the lock flag to unlock the annot?
Thanks
Simon
Tell if an annot is being pasted
Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan
Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.
When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.
When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
- Contact:
Re: Tell if an annot is being pasted
Hello lidds,
Well you can try listening to the cmd.paste command execution by using your own command handler as a listener.
Cheers,
Alex
Well you can try listening to the cmd.paste command execution by using your own command handler as a listener.
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Re: Tell if an annot is being pasted
Hi Alex,
Is there any chance you could give me some guidance on this.
I have created listeners before for PDFXChange Editor, but these are listening for GUI control events e.g. modifying the font size dropdown etc. I am unsure how to listen for the cmd.paste command as this could be executed by someone using Cntrl+V keys or holding Cntrl key and dragging the annot, so no actual GUI interaction.
Hope that makes sense.
Thanks
Simon
Is there any chance you could give me some guidance on this.
I have created listeners before for PDFXChange Editor, but these are listening for GUI control events e.g. modifying the font size dropdown etc. I am unsure how to listen for the cmd.paste command as this could be executed by someone using Cntrl+V keys or holding Cntrl key and dragging the annot, so no actual GUI interaction.
Hope that makes sense.
Thanks
Simon
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
- Contact:
Re: Tell if an annot is being pasted
Hello lidds,
Well I answered your initial question. When the user uses Ctl+V - the cmd.paste is being executed, because it's a command accelerator. Thus listening to the command's execution will do the trick:
viewtopic.php?f=66&t=33930&p=140835&hil ... nd#p140835
If you are dragging with ctl, then the op_annots_move operation will be executed.
Cheers,
Alex
Well I answered your initial question. When the user uses Ctl+V - the cmd.paste is being executed, because it's a command accelerator. Thus listening to the command's execution will do the trick:
viewtopic.php?f=66&t=33930&p=140835&hil ... nd#p140835
If you are dragging with ctl, then the op_annots_move operation will be executed.
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ