e_annots_changed

PDF-XChange Editor SDK for Developers

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.
Post Reply
jusWest
User
Posts: 150
Joined: Fri Aug 24, 2018 8:26 am

e_annots_changed

Post by jusWest »

Hello!

Clicking this checkbox:
checkbox.PNG
checkbox.PNG (2.78 KiB) Viewed 1845 times
Always triggers the e_annots_changed event.

And in that event I set a flag indicating if an annot has changed.

In our app, we do not want the checkbox to indicate to the app that an annot has changed.
So is there a way i can detect that checkbox change so we can avoid setting our flag?

/Ronny
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: e_annots_changed

Post by Sasha - Tracker Dev Team »

Hello jusWest,

From what I see, the e_annots_changed does not hold this information. You should monitor the op_annots_setState execution - it's being launched when that state is being changed.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
jusWest
User
Posts: 150
Joined: Fri Aug 24, 2018 8:26 am

Re: e_annots_changed

Post by jusWest »

the event op_annots_setState does not fire when i click that checkbox, neither if I try to change/add or delete an annot.
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: e_annots_changed

Post by Sasha - Tracker Dev Team »

Hello jusWest,

It's not an event - but an operation. Basically you should catch the e_operBeforeExecute event and see what operation is being executed.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
jusWest
User
Posts: 150
Joined: Fri Aug 24, 2018 8:26 am

Re: e_annots_changed

Post by jusWest »

doh :roll:

thank you :P
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

e_annots_changed

Post by Sasha - Tracker Dev Team »

:)
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Post Reply