Hide menu item 'Launch' under Document

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
AteBe
User
Posts: 63
Joined: Thu Dec 06, 2018 7:02 am

Hide menu item 'Launch' under Document

Post by AteBe »

Hello,
I try to hide the menu item Document->Launch including all submenus.
I've tried the description at viewtopic.php?f=66&t=27339&p=105967&hilit=menu#p105967 with the id "cmd.launchExternalApp".

Code: Select all

  public void hideMenu() {
	Object o = getInst().GetExtension("UIX");
	Pointer ptr = ((Unknown) o).getPointer();
	IUIX_Inst in = new IUIX_Inst(ptr);
	IUIX_Cmd menu = in.CmdManager().Cmds().Find("cmd.launchExternalApp");
	if (menu != null)
	    menu.Hidden(true);
    }
The call IUIX_Cmd menu = in.CmdManager().Cmds().Find("cmd.launchExternalApp"); is successfull but the call menu.Hidden(true); has no effect and the menu item is still visible.

As a test, I also tried to hide the menu item 'Content Editing Tools' under Tools, which did not work either.
How can I hide menu item Launch?

AteBe

Launch.PNG
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Hide menu item 'Launch' under Document

Post by Sasha - Tracker Dev Team »

Hello AteBe,

I've just tried hiding it from the FullDemo application in the Classic interface - everything worked correctly - it disappeared from the Document menu and also from the bottom right corner.
image.png
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Post Reply