Multiple Instances of TPXV_Control

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
jeffp
User
Posts: 914
Joined: Wed Sep 30, 2009 6:53 pm

Multiple Instances of TPXV_Control

Post by jeffp »

I'm just checking back on a post I made earlier this year about having the ability to have multiple instances of TPXV_Control in the same application with each having their own IPXV_Inst.

In my application, I need a control that acts as a PDF Editor and one that acts as a PDF Previewer, each of which needs its own settings, etc. With the old ViewerAX I could just create two instances of that control.

You mentioned several months ago you were going to take another look at this.

Is there now a way to accomplish this with the new Editor SDK?

--Jeff
User avatar
Vasyl-Tracker Dev Team
Site Admin
Posts: 2353
Joined: Thu Jun 30, 2005 4:11 pm
Location: Canada

Re: Multiple Instances of TPXV_Control

Post by Vasyl-Tracker Dev Team »

You mentioned several months ago you were going to take another look at this.
Unfortunately, we were very busy with other important tasks - so currently I can say only: no, it still not implemented, sorry.
Biggest problem with that - its not to easy to make something like "isolated apartments" when we talking about general IPXV_Inst object. Because currently it is just single and root object of whole Editor API. To have possibility to allow create many instances of IPXV_Inst - the big part of Editor SDK must be refactored deeply before. But currently we still have many other tasks with high priority too and we haven't enough resources to do your task now. We planning to do it, but I cannot promise you when it can be done..
Vasyl Yaremyn
Tracker Software Products
Project Developer

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
jeffp
User
Posts: 914
Joined: Wed Sep 30, 2009 6:53 pm

Re: Multiple Instances of TPXV_Control

Post by jeffp »

Ok. Fair enough. Just glad to know you are planning on it at some future date.

I'll bug you again about it in a few months. :-)

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

Re: Multiple Instances of TPXV_Control

Post by Sasha - Tracker Dev Team »

:)
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
jeffp
User
Posts: 914
Joined: Wed Sep 30, 2009 6:53 pm

Re: Multiple Instances of TPXV_Control

Post by jeffp »

Just checking back again to see if this is going to be in the cards for a future release?

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

Re: Multiple Instances of TPXV_Control

Post by Sasha - Tracker Dev Team »

Hello Jeff,

As far as I know - not for this one yet.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Erickc
User
Posts: 46
Joined: Tue Apr 12, 2016 2:36 pm

Re: Multiple Instances of TPXV_Control

Post by Erickc »

Hello there!
As we may have a need for this feature, I'm doing a quick check with you guys at Tracker to see if there is any updates about its availability.
Cheers,
Eric
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Multiple Instances of TPXV_Control

Post by Sasha - Tracker Dev Team »

Hello Erickc,

Just asked one of our lead devs about this - he said that we won't be doing this now and we can't give you any eta either.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
jeffp
User
Posts: 914
Joined: Wed Sep 30, 2009 6:53 pm

Re: Multiple Instances of TPXV_Control

Post by jeffp »

Any more thought on this one? Is it something you plan on doing in an upcoming build?

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

Re: Multiple Instances of TPXV_Control

Post by Sasha - Tracker Dev Team »

Hello Jeff,

Not for the upcoming build, that's for sure.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
RoGraf
User
Posts: 13
Joined: Tue Mar 20, 2018 10:39 am

Re: Multiple Instances of TPXV_Control

Post by RoGraf »

Unfortunately we have the same issue with the single INST. Actually we also open multible XChange-Viewers an it works fine - we only get the Events from the used instance. With the new Editor this is not possible, because every "instance" of the Editor gets all Events of all open documents.
Is there a chance to raise the priority - its clearly a lot of structural work to do to enable multible instances of the core, but we realy need it.
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Multiple Instances of TPXV_Control

Post by Sasha - Tracker Dev Team »

Hello RoGraf,

The IPXV_Inst object is the same for the controls in the same process thus the events are handled by it's event server. Think of the control as a wrapper class. Physically, there are two IPXV_MainFrames. You can try getting the main frame that the event is being handled at to distinguish them. Though it depends on your usage.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
jeffp
User
Posts: 914
Joined: Wed Sep 30, 2009 6:53 pm

Re: Multiple Instances of TPXV_Control

Post by jeffp »

Any chance multiple instances of TPXV_Control will be in v9 upcoming?

--Jeff
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17892
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Multiple Instances of TPXV_Control

Post by Tracker Supp-Stefan »

Hello jeffp,

I am afraid that multiple controls handling won't be included in V9 as we had to focus our efforts on quite a lot of other features instead.

Kind regards,
Stefan
Post Reply