Switching from multi document tabs to cascade view - in code

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

docu-track99
User
Posts: 518
Joined: Thu Dec 06, 2007 8:13 pm

Switching from multi document tabs to cascade view - in code

Post by docu-track99 »

Hi Using VB.NET

I am loading multiple documents into the pdf viewer and having them show as tabs. I want to programatically let the user switch from a tab view to a cascade view and back again, but am having some difficulty figuring out which commands to use in my code. (I can do it fine through the tracker interface, but I am trying to simplify it as single step process from the user perspective.

Any thoughts?
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2445
Joined: Thu Jun 30, 2005 4:11 pm

Re: Switching from multi document tabs to cascade view - in

Post by Vasyl - PDF-XChange »

Hi docu-track99.

Try the next way:

- to cascade documents:

Code: Select all

pdfViewer.SetProperty("View.Bars[#32940].Visible", "false", 0);                    // #32940 - ID of tab bar
pdfViewer.DoVerb("", "ExecuteCommand", "CascadeWindows", null, 0);
//// pdfViewer.DoVerb("", "ExecuteCommand", "TileWindowsHorizontal", null, 0);
//// pdfViewer.DoVerb("", "ExecuteCommand", "TileWindowsVertical", null, 0);
- back to tabbed documents:

Code: Select all

pdfViewer.SetProperty("View.Bars[#32940].Visible", "true", 0);
HTH.
PDF-XChange Co. LTD (Project Developer)

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.