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
			
			
									
																
						Get notified when PropertiesView pane changes its "source" SOLVED
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
					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.
- 
				zarkogajic
- User
- Posts: 1522
- Joined: Thu Sep 05, 2019 12:35 pm
- 
				zarkogajic
- User
- Posts: 1522
- Joined: Thu Sep 05, 2019 12:35 pm
Re: Get notified when PropertiesView pane changes its "source"
Hi support,
Any info here?
-ž
			
			
									
																
						Any info here?
-ž
- 
				Sasha - PDF-XChange
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
Re: Get notified when PropertiesView pane changes its "source"
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
			
			
									
													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
			
						https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
- 
				Sasha - PDF-XChange
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
Re: Get notified when PropertiesView pane changes its "source"
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
			
			
									
													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
			
						https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
- 
				zarkogajic
- User
- Posts: 1522
- Joined: Thu Sep 05, 2019 12:35 pm
Re: Get notified when PropertiesView pane changes its "source"
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...
-ž
			
			
									
																
						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 - PDF-XChange
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
Re: Get notified when PropertiesView pane changes its "source" SOLVED
Hello žarko,
The IPXV_DocSelection interface has the ID of the selection that should be used for correct casting. Here are the selection types:
Cheers,
Alex
			
			
									
													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.guidesCheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
			
						https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
- 
				zarkogajic
- User
- Posts: 1522
- Joined: Thu Sep 05, 2019 12:35 pm
Re: Get notified when PropertiesView pane changes its "source"
Hi Alex.
Great, thanks!
-ž
			
			
									
																
						Great, thanks!
-ž
- 
				Sasha - PDF-XChange
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
Re: Get notified when PropertiesView pane changes its "source"

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