Pan and Zoom opened twice

PDF-XChange Editor SDK for Developers

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Sean - Tracker, Paul - Tracker Supp, Chris - Tracker Supp, Tracker Supp-Stefan, Ivan - Tracker Software

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
MaSeife
User
Posts: 3
Joined: Thu Jun 27, 2019 11:21 am

Pan and Zoom opened twice

Post by MaSeife » Thu Mar 19, 2020 3:03 pm

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.
Pan and Zoom opened twice.jpg
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

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

Re: Pan and Zoom opened twice

Post by Sasha - Tracker Dev Team » Fri Mar 20, 2020 7:40 am

Hello MaSeife,

Can you recreate this behavior in the FullDemo application?

Cheers,
Alex
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ

MaSeife
User
Posts: 3
Joined: Thu Jun 27, 2019 11:21 am

Re: Pan and Zoom opened twice

Post by MaSeife » Fri Mar 20, 2020 10:03 am

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.

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

Re: Pan and Zoom opened twice

Post by Sasha - Tracker Dev Team » Fri Mar 20, 2020 12:18 pm

Hello MaSeife,

So you have come up with the solution for yourself?

Cheers,
Alex
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ

MaSeife
User
Posts: 3
Joined: Thu Jun 27, 2019 11:21 am

Re: Pan and Zoom opened twice

Post by MaSeife » Tue Mar 24, 2020 8:04 am

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

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

Re: Pan and Zoom opened twice

Post by Sasha - Tracker Dev Team » Thu Mar 26, 2020 1:06 pm

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
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ

Post Reply