Arragne windows

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

bmw
User
Posts: 14
Joined: Wed Dec 11, 2013 11:47 pm

Arragne windows

Post by bmw »

Hi,

I would like to set the windows Vertical when my app loads because it is set to the MDI. I have tried to the below code, but I got error.

bsVerb = "Commands.TitleWindowsVertical";
axCoPDFXCview1.DoVerb(bsVerb, "SET", vDataIn, out vDataOut);


vDataIn = "57652";
axCoPDFXCview1.DoVerb(null, "ExecuteCommand", vDataIn, out vDataOut, 0);

Would someone show me the correct method to do it. Thanks in advance
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2445
Joined: Thu Jun 30, 2005 4:11 pm

Re: Arragne windows

Post by Vasyl - PDF-XChange »

Code: Select all

bsVerb = "Commands.TitleWindowsVertical";
axCoPDFXCview1.DoVerb(bsVerb, "SET", vDataIn, out vDataOut);

vDataIn = "57652";
axCoPDFXCview1.DoVerb(null, "ExecuteCommand", vDataIn, out vDataOut, 0);
Your code is incorrect. The correct:

Code: Select all

vDataIn = 57652;
// OR
// vDataIn = "TileWindowsVertical"; // Note: not "Title..."  but "Tile..."
axCoPDFXCview1.DoVerb(null, "ExecuteCommand", vDataIn, out vDataOut, 0);
Note: you can use the "TileWindowsVertical" only when MDI mode is enabled.
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.
bmw
User
Posts: 14
Joined: Wed Dec 11, 2013 11:47 pm

Re: Arragne windows

Post by bmw »

Thanks. How can I check the windows is view on cascade or TileVertical in code?
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2445
Joined: Thu Jun 30, 2005 4:11 pm

Re: Arragne windows

Post by Vasyl - PDF-XChange »

No way for this in current version.
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.