Disable only toggle bar tool context menus

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

bmw
User
Posts: 14
Joined: Wed Dec 11, 2013 11:47 pm

Disable only toggle bar tool context menus

Post by bmw »

Hi,

I know how to disable all context Menus by using the below code. It disable the toggle tool bar and command.
axCoPDFXCview1.SetProperty(bsVerb, 1, 0 );

However I only want the context menu to pop up if the user right click on the document. I would like to show the context menu which has "Hand Tool", "Select Tool" and "Zoom in Tool" ect.. How can I do it in code? Also is it possible to disable the specific item on this context menu? If so, would you give me an example for "Add Bookmark". Thanks.
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19913
Joined: Mon Jan 12, 2009 8:07 am

Re: Disable only toggle bar tool context menus

Post by Stefan - PDF-XChange »

Hi bmw,

If you disable a command it should be disabled in all places (including context menus, toolbars and the main menu), however the context menu can not be modified for e.g. some of the commands to be hidden from it, so you will need to make sure to deactivate each one you do not need, and then they will still be displayed in the context menu but will be unusable.

Regards,
Stefan