File Toolbar Icons

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

jwsullivan
User
Posts: 14
Joined: Wed Apr 11, 2007 11:16 am

File Toolbar Icons

Post by jwsullivan »

When I show the File toolbar (View-Toolbars-File toolbar-checked is true) is there a way to be more specific as to which items shown are available for use?

For some reason, the "Save" icon does not respond when I click on it.

On the other hand, the "Send by Email" icon works - and I would like to be able to disable it.

Is it presently possible to control access to these items?

Thanks!

Jim
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19885
Joined: Mon Jan 12, 2009 8:07 am

Re: File Toolbar Icons

Post by Stefan - PDF-XChange »

Hello Jim,

You can not dynamically control the buttons in each toolbar via code but you can show/hide whole toolbars with ease.
e.g. to show the File toolbar you can use this:
SetProperty("View.Bar["File"].Visible", DataIn(1), 0);

You can also lock all bars so that your users can not use them, or lock the whole UI for customizations.
Please check section 2.2.2.18 View in the Viewer AX SDK manual.

You can also enable or disable commands one by one. Please check 2.2.3.8 Command States, and if you want to disable e.g. the send by e-mail operation you can use:
SetProperty("Commands["SendMail"].State", "Offline", 0);
You can find the full list of commands under section 2.2.2.2.1 Command List

Best,
Stefan