Hide "Prop" in context menu

PDF-XChange Editor SDK for Developers

Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
Post Reply
khho
User
Posts: 34
Joined: Fri Mar 11, 2022 11:02 am

Hide "Prop" in context menu

Post by khho »

Hello,
I do hide commands so the will also not appear in a context menu.
My way to do that is:

Code: Select all

var uiInst = (IUIX_Inst)pdfView.Inst.GetExtension("UIX");
var uiCommands = uiInst.CmdManager.Cmds;
var command = uiCommands.Find(commandName);
if (command != null)
{
	command.Hidden = true;
}
In context menus there sometimes Props(?) like 'Printable' or 'Status'.
How can I hide them?

Best regards
khho
User
Posts: 34
Joined: Fri Mar 11, 2022 11:02 am

Re: Hide "Prop" in context menu

Post by khho »

Any idea?
zarkogajic
User
Posts: 1370
Joined: Thu Sep 05, 2019 12:35 pm

Re: Hide "Prop" in context menu

Post by zarkogajic »

Hi,

Please send a screen shot of the context menu (and where executed) and pinpoint items you'd like removed...

-žarko
khho
User
Posts: 34
Joined: Fri Mar 11, 2022 11:02 am

Re: Hide "Prop" in context menu

Post by khho »

Hello,
I reduced the context menu (see inital and reduced cintext menu in zip).

I like to hide "Locked" and "Printable" too.
ContextMenu.zip
(28.24 KiB) Downloaded 59 times
zarkogajic
User
Posts: 1370
Joined: Thu Sep 05, 2019 12:35 pm

Re: Hide "Prop" in context menu

Post by zarkogajic »

Hi ,

Command names for those 2 are "cmd.comments.locked" and "cmd.comments.printable"

-žarko
khho
User
Posts: 34
Joined: Fri Mar 11, 2022 11:02 am

Re: Hide "Prop" in context menu

Post by khho »

zarkogajic wrote: Wed Nov 23, 2022 12:04 pm Hi ,

Command names for those 2 are "cmd.comments.locked" and "cmd.comments.printable"

-žarko
Hi -žarko,
that works, thank you!

I searched the whole list of IUIX_Inst CmdManager.Cmds - i could not found them.
Where is the right place to search?

Greets,
khho
zarkogajic
User
Posts: 1370
Joined: Thu Sep 05, 2019 12:35 pm

Re: Hide "Prop" in context menu

Post by zarkogajic »

Hi

Right click main toolbar and select "Customize":
image.png

khho
User
Posts: 34
Joined: Fri Mar 11, 2022 11:02 am

Re: Hide "Prop" in context menu

Post by khho »

-ž, thanks for this, too!
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17810
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Hide "Prop" in context menu

Post by Tracker Supp-Stefan »

:)
Post Reply