control document bar & pane when no document is loaded yet

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

nirnir
User
Posts: 30
Joined: Wed Aug 25, 2010 10:22 am

control document bar & pane when no document is loaded yet

Post by nirnir »

Hi,
Can I control the visibility of document bars via setproperty when no document is loaded yet ?
I want to define the default look of the component without capturing open events and without external files(loadsettings)
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2445
Joined: Thu Jun 30, 2005 4:11 pm

Re: control document bar & pane when no document is loaded yet

Post by Vasyl - PDF-XChange »

Hi, nirnir.

Try next before opening documents:

Code: Select all

ctrl.SetProperty("Documents.LastView.Bars["PagesNavigation"].Visible", "true", 0);
ctrl.SetProperty("Documents.LastView.Bars["PagesLayout"].Visible", "true", 0);
ctrl.SetProperty("Documents.LastView.Bars["Options"].Visible", "true", 0);
ctrl.SetProperty("Documents.LastView.Bars["Launch"].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.