Disable 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

cew
User
Posts: 213
Joined: Tue Feb 01, 2011 8:14 am

Disable context menus

Post by cew »

Hi all,

I don't want the user to be able to get into the Preferences dialog.

Therefore I set "Preferences" to Offline

Code: Select all

_RLC.SetProperty("Commands[\"Preferences\"].State", "Offline", 0);
But if the user selects a text within the document, he can use contextmenu -> "Search By" -> "Manage Search providers..."
Et voilà! He opens the "Preferences" dialog! :cry:

If I deny all contextmenus

Code: Select all

_RLC.SetProperty("General.DenyAllContextMenus", 1, 0);
the user can't go the way described above.

BUT: He also can't customize the visibility of the toolbars and panes. :cry:

Is there a way for selective disable of contextmenu within document and control?

Is it also possible to disable the "Search By" command?

Best regards
cew
Corwin - Tracker Sup
User
Posts: 664
Joined: Tue Nov 14, 2006 12:23 pm

Re: Disable context menus

Post by Corwin - Tracker Sup »

Hi,

You indeed may disable "Manage Search Providers" command. It doesn't have name, but you can find it by title. ID for this command is 36513.

HTH.