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?
Is there a way to hide a single menu or tool bar button
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
-
- User
- Posts: 27
- Joined: Sat Jun 13, 2009 6:33 am
-
- 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
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.
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.
-
- 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
Hello Corwin,
Thank for your reply.
But how to make my own context menu and how to deny "print" and "export" operations?
Thank for your reply.
But how to make my own context menu and how to deny "print" and "export" operations?
-
- 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
Hi,
To deny print and export operations you can use next properties:
Some tips of how to make own context menu you can find at "MouseEvents" example which comes with Viewer SDK.
To deny print and export operations you can use next properties:
Code: Select all
axCoPDFXCview1.SetProperty("General.DenyAllPrintOperations", "True");
axCoPDFXCview1.SetProperty("General.DenyAllExportOperations", "True");