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.
khho
User
Posts: 34 Joined: Fri Mar 11, 2022 11:02 am
Post
by khho » Wed Nov 16, 2022 10:02 am
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
Post
by khho » Mon Nov 21, 2022 8:48 am
Any idea?
zarkogajic
User
Posts: 1372 Joined: Thu Sep 05, 2019 12:35 pm
Post
by zarkogajic » Mon Nov 21, 2022 6:18 pm
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
Post
by khho » Wed Nov 23, 2022 9:52 am
Hello,
I reduced the context menu (see inital and reduced cintext menu in zip).
I like to hide "Locked" and "Printable" too.
zarkogajic
User
Posts: 1372 Joined: Thu Sep 05, 2019 12:35 pm
Post
by zarkogajic » Wed Nov 23, 2022 12:04 pm
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
Post
by khho » Wed Nov 23, 2022 3:10 pm
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: 1372 Joined: Thu Sep 05, 2019 12:35 pm
Post
by zarkogajic » Wed Nov 23, 2022 4:58 pm
Hi
Right click main toolbar and select "Customize":
-ž
khho
User
Posts: 34 Joined: Fri Mar 11, 2022 11:02 am
Post
by khho » Thu Nov 24, 2022 12:11 pm
-ž, thanks for this, too!