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
File Toolbar Icons
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
-
- Site Admin
- Posts: 19885
- Joined: Mon Jan 12, 2009 8:07 am
Re: File Toolbar Icons
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
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