Hide toolbar completely

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

milonass
User
Posts: 35
Joined: Tue Oct 06, 2015 1:09 pm

Hide toolbar completely

Post by milonass »

Hi,

is it possible to hide the toolbar completely? If yes, how?

Thanks,
Thomas
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19913
Joined: Mon Jan 12, 2009 8:07 am

Re: Hide toolbar completely

Post by Stefan - PDF-XChange »

Hello Thomas,

You have posted in the Viewer SDK forums, so I will assume you are using this SDK, but please note that this is now an older and no longer actively developed product, as it was replaced by the Editor SDK.

The easiest way to customize all toolbars is to install the end user Viewer, customize all toolbars to the state you want them all to be, and then export the settings to a file. Then in your project use LoadSettings() immediately after initializing the Viewer AX Control.

Regards,
Stefan
milonass
User
Posts: 35
Joined: Tue Oct 06, 2015 1:09 pm

Re: Hide toolbar completely

Post by milonass »

Hello Stefan,

ok, thank you. I know the viewer is not supported any more, but the editor has the restriction regarding multiple instances of the activeX control.
It would be more secure for us if we had not to use a settings file, since we had to distribute the file to all end user work stations. Is there a more "intrinsic" way to hide the toolbar?

Thank you.

Regards,
Thomas
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19913
Joined: Mon Jan 12, 2009 8:07 am

Re: Hide toolbar completely

Post by Stefan - PDF-XChange »

Hi Thomas,

The settings file I suggested will reside inside your own application's folder and the users won't know and see it at all, as the loading will be done though code as well, but yes there is a direct way as well - you can control the visibility of toolbars through code as shown in the samples here:
https://help.pdf-xchange.com/DEV/de ... xactphrase

Regards,
Stefan
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2448
Joined: Thu Jun 30, 2005 4:11 pm

Re: Hide toolbar completely

Post by Vasyl - PDF-XChange »

Hi, Thomas.

There is a way to hide/show(toggle) all toolbars visibility. You may run command ID:33015 ("Show/Hide All Bars").

Also you may hide each toolbar individually (exists more than one toolbars if you noticed it). Look to to our sample

<Program Files>\Tracker Software\PDF-XChange Viewer SDK\Examples\C#Examples\FullDemo

- the 'View' tab in UI.

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.