We have the following problem: at shutdown of our application the pan&zoom-tool is active for a loaded document. After restart the tool is somehow still active and it is initialized twice. E.g. we got 2 tool-windows open while the first one overlays the other. After loading a pdf only the second one (in the background) is linked. The first one (in the foreground) stays empty.
Is this a bug or a feature?
Is it possible to check if the window is active at a certain point of time (in our case the shutdown-moment) and - if yes - to close it? In our case it should be something connected to 'cmd.view.panzoom'. We're using it in a java application.
It's Pdf XChange Editor Plus 7.0 Build 328.2
Pan and Zoom opened twice
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: Pan and Zoom opened twice
Hello MaSeife,
Can you recreate this behavior in the FullDemo application?
Cheers,
Alex
Can you recreate this behavior in the FullDemo application?
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Re: Pan and Zoom opened twice
Hi Alex,
no. I haven't tried to reproduce it with the Full Demo Application.
Little Update: We found out that the second Pan-Zoom-View comes from an inactive and therefore invisible PDF Editor instance within our application (we use up to 2 instances). During the shutdown of our application the PDF Editor settings are stored to the file system (using IPXV_Inst.SaveUserSettings()). Somehow the settings for the currently invisible PDF Editor instance seem to get the 'pan zoom view visible = true' information although it is only true for the other visible PDF Editor instance. After startup the two Pan-Zoom-Views come up although only one is needed.
Update2:
IPXV_Control.GetPaneVisibility("panzoomView") can be used to find out if it is shown. And IPXV_Control.ShowPane("panzoomView", false, false) can be used to make it invisible.
no. I haven't tried to reproduce it with the Full Demo Application.
Little Update: We found out that the second Pan-Zoom-View comes from an inactive and therefore invisible PDF Editor instance within our application (we use up to 2 instances). During the shutdown of our application the PDF Editor settings are stored to the file system (using IPXV_Inst.SaveUserSettings()). Somehow the settings for the currently invisible PDF Editor instance seem to get the 'pan zoom view visible = true' information although it is only true for the other visible PDF Editor instance. After startup the two Pan-Zoom-Views come up although only one is needed.
Update2:
IPXV_Control.GetPaneVisibility("panzoomView") can be used to find out if it is shown. And IPXV_Control.ShowPane("panzoomView", false, false) can be used to make it invisible.
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
- Contact:
Re: Pan and Zoom opened twice
Hello MaSeife,
So you have come up with the solution for yourself?
Cheers,
Alex
So you have come up with the solution for yourself?
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Re: Pan and Zoom opened twice
Hi Alex,
I'd say we can at least work around the problem. It is still confusing to see the Pan-Zoom-View visible when the PDF Editor instance it 'belongs to' is not visible.
Regards,
Markus
I'd say we can at least work around the problem. It is still confusing to see the Pan-Zoom-View visible when the PDF Editor instance it 'belongs to' is not visible.
Regards,
Markus
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
- Contact:
Re: Pan and Zoom opened twice
Hello Markus,
Well that indeed is a problem behind it, though I don't see how it can be fixed from our side as it's not a normal case for the End-User Editor.
Cheers,
Alex
Well that indeed is a problem behind it, though I don't see how it can be fixed from our side as it's not a normal case for the End-User Editor.
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ