Get notified when PropertiesView pane changes its "source"  SOLVED

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
zarkogajic
User
Posts: 1370
Joined: Thu Sep 05, 2019 12:35 pm

Get notified when PropertiesView pane changes its "source"

Post by zarkogajic »

Hi support,

The Properties pane displays properties of various elements: bookmarks, pages, annotations, comments, selected text...

Is there an event to catch to get notified when the Properties pane changes its "source" (and of course to know what the source is)?

-žarko
zarkogajic
User
Posts: 1370
Joined: Thu Sep 05, 2019 12:35 pm

Re: Get notified when PropertiesView pane changes its "source"

Post by zarkogajic »

Hi support,

Any info here?

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

Re: Get notified when PropertiesView pane changes its "source"

Post by Sasha - Tracker Dev Team »

Hello žarko,

The properties pane changes on the selection change. Basically, you will have to monitor the https://sdkhelp.pdf-xchange.com/vi ... on_changed event and then use https://sdkhelp.pdf-xchange.com/vi ... _ActiveSel to extract the needed data.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Get notified when PropertiesView pane changes its "source"

Post by Sasha - Tracker Dev Team »

Hello žarko,

The properties pane changes on the selection change. Basically, you will have to monitor the https://sdkhelp.pdf-xchange.com/vi ... on_changed event and then use https://sdkhelp.pdf-xchange.com/vi ... _ActiveSel to extract the needed data.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
zarkogajic
User
Posts: 1370
Joined: Thu Sep 05, 2019 12:35 pm

Re: Get notified when PropertiesView pane changes its "source"

Post by zarkogajic »

Hi Alex,

Thanks.

How do I extract what type of selection is currently active: say I'm selecting something in panes: Bookmarks, PageContent or Links. I do not see how to extract that info from IPXV_DocSelection.

Or when I'm actually selecting something on a page: is it a text selection or link selected or comment...

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

Re: Get notified when PropertiesView pane changes its "source"  SOLVED

Post by Sasha - Tracker Dev Team »

Hello žarko,

The IPXV_DocSelection interface has the ID of the selection that should be used for correct casting. Here are the selection types:

Code: Select all

selection.pages
selection.annots
selection.bookmarks
selection.text
selection.pageRect
selection.contentItems
selection.pdfNamedDests
selection.attachments
selection.ocg
selection.guides

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
zarkogajic
User
Posts: 1370
Joined: Thu Sep 05, 2019 12:35 pm

Re: Get notified when PropertiesView pane changes its "source"

Post by zarkogajic »

Hi Alex.

Great, thanks!

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

Re: Get notified when PropertiesView pane changes its "source"

Post by Sasha - Tracker Dev Team »

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