Adding userControl to docking form...

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
lidds
User
Posts: 510
Joined: Sat May 16, 2009 1:55 pm

Adding userControl to docking form...

Post by lidds »

Is it possible to add a new docking form to PDF Xchange Editor control that will display a userControl from my project?

If so do you have an example of how to achieve this?

Thanks

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

Re: Adding userControl to docking form...

Post by Sasha - Tracker Dev Team »

Hello Simon,

You mean you want to add something like the property pane?

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
lidds
User
Posts: 510
Joined: Sat May 16, 2009 1:55 pm

Re: Adding userControl to docking form...

Post by lidds »

Yes that is correct Alex. Is there a way that I can add a userControl to a pane within PDF Xchange Editor, so that the docking pane is within the PDFXEdit.
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Adding userControl to docking form...

Post by Sasha - Tracker Dev Team »

Hello Simon,

There was a topic like that before - the sample is quite complicated to implement, so this will be done when there are no more urgent matters (new features, bug fixes).

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
lidds
User
Posts: 510
Joined: Sat May 16, 2009 1:55 pm

Re: Adding userControl to docking form...

Post by lidds »

Hi Alex,

I was wondering if there is / or if you have managed to produce a smaple to show how to do this? This is becoming quite urgent for me.

Thanks

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

Re: Adding userControl to docking form...

Post by Sasha - Tracker Dev Team »

Hello Simon,

I'm afraid that there is no sample on this one yet. Though I will try to prepare it as soon as I have time for this.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
lidds
User
Posts: 510
Joined: Sat May 16, 2009 1:55 pm

Re: Adding userControl to docking form...

Post by lidds »

Thanks Alex,

This would be really apreciated

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

Re: Adding userControl to docking form...

Post by Sasha - Tracker Dev Team »

:)
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: Adding userControl to docking form...

Post by Sasha - Tracker Dev Team »

Hello Simon,

I've prepared a small sample on this case:
https://github.com/tracker-software/PDF ... CustomPane

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
lidds
User
Posts: 510
Joined: Sat May 16, 2009 1:55 pm

Re: Adding userControl to docking form...

Post by lidds »

Alex,

Thank you so much for this and the quick response. However I have had a look at this and am a little unsure how I could add a userControl to the custom pane?

Thanks

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

Re: Adding userControl to docking form...

Post by Sasha - Tracker Dev Team »

Hello Simon,

You mean that you want to embed your COM control inside of our pane?

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
lidds
User
Posts: 510
Joined: Sat May 16, 2009 1:55 pm

Re: Adding userControl to docking form...

Post by lidds »

Yes, exactly right. Is that possible?
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Adding userControl to docking form...

Post by Sasha - Tracker Dev Team »

Hello Simon,

Well we will try to come up with something. Can you give a little more information on the Control that you are trying to embed, so that we can understand more what to work with on our side (for example Windows Media Player control or something like that).

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
lidds
User
Posts: 510
Joined: Sat May 16, 2009 1:55 pm

Re: Adding userControl to docking form...

Post by lidds »

Alex,

Basically I want to add a custom user control to your docking form. I have attached a copy of your original project sample with a custom user control that contains a button. Basically the user control could contain anything from a button, to a grid control, panel etc.

Thanks

Simon
Attachments
CustomControlDockForm.zip
(30.93 KiB) Downloaded 67 times
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Adding userControl to docking form...

Post by Sasha - Tracker Dev Team »

Hello Simon,

Tomorrow we will have a dev conference - I will ask whether this is possible at all. I'm pretty sure that this should work with COM components, though I don't know about the User Controls.

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: Adding userControl to docking form...

Post by Sasha - Tracker Dev Team »

Hello Simon,

We have managed to do this :)
https://github.com/tracker-software/PDF ... CustomPane

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
lidds
User
Posts: 510
Joined: Sat May 16, 2009 1:55 pm

Re: Adding userControl to docking form...

Post by lidds »

Alex,

This is fantastic news and really does open this up for me and hopefully other users. Thank you for the excellent support as usual.

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

Re: Adding userControl to docking form...

Post by Tracker Supp-Stefan »

:)
Post Reply