Is there a way to hide a single menu or tool bar button

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

song_sd
User
Posts: 27
Joined: Sat Jun 13, 2009 6:33 am

Is there a way to hide a single menu or tool bar button

Post by song_sd »

Hi,

I want to hide one single menu or tool bar button (for example: to hide "File Attachment Tool"
menu/button and leave other comment tools' menus and buttons visible).
Can this be achieved? and how?

Also I want to hide the menu "print" and "export" in the mouse right-click menus.
Is it possible?
Corwin - Tracker Sup
User
Posts: 664
Joined: Tue Nov 14, 2006 12:23 pm

Re: Is there a way to hide a single menu or tool bar button

Post by Corwin - Tracker Sup »

Hello,
You can make changes to Viewer UI (using "Customize" dialog), then export settings and import them when your program starts. This may help if you want to hide some menu items or buttons. For now we don’t have methods to hide items from context menu. To do this you can make your own context menu or just deny "print" and "export" operations.
song_sd
User
Posts: 27
Joined: Sat Jun 13, 2009 6:33 am

Re: Is there a way to hide a single menu or tool bar button

Post by song_sd »

Hello Corwin,

Thank for your reply.
But how to make my own context menu and how to deny "print" and "export" operations?
Corwin - Tracker Sup
User
Posts: 664
Joined: Tue Nov 14, 2006 12:23 pm

Re: Is there a way to hide a single menu or tool bar button

Post by Corwin - Tracker Sup »

Hi,
To deny print and export operations you can use next properties:

Code: Select all

axCoPDFXCview1.SetProperty("General.DenyAllPrintOperations", "True");
axCoPDFXCview1.SetProperty("General.DenyAllExportOperations", "True");
Some tips of how to make own context menu you can find at "MouseEvents" example which comes with Viewer SDK.