Hi,
Is there a method for programmatically setting the active tab when multiple documents are open?
Thank you in advance for your help!
Martin
Switch document tab programmatically SOLVED
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: Switch document tab programmatically
Hello Martin,
Do you mean setting active document tab? And how do you want to choose it - by name, index etc?
Do you mean setting active document tab? And how do you want to choose it - by name, index etc?
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Re: Switch document tab programmatically
Hi Sasha,
That's correct, I would like to set the active document tab - preferably using the windowId of the PDF document.
Is this possible?
That's correct, I would like to set the active document tab - preferably using the windowId of the PDF document.
Code: Select all
this.pdfCtl.Doc.ID
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
- Contact:
Re: Switch document tab programmatically SOLVED
Try using
or you can try this
HTH
Code: Select all
pdfCtl.Doc.ActiveView.Activate();
Code: Select all
int i = 1;//Index of the document
pdfCtl.Inst.ActiveMainView.DocViewsArea.DocViews[i].Activate();
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Re: Switch document tab programmatically
Hi Sasha,
It's working perfectly.
Thank you for your help!
It's working perfectly.
Thank you for your help!
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
- Contact:
Re: Switch document tab programmatically
Glad to hear that Martin
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ