Skip to main content
Participant
September 9, 2016
Question

Can't add plugin menu to View/Tools menu

  • September 9, 2016
  • 0 replies
  • 671 views

Hi all,

Any help?

I try to add plugin to View/Tools menu (Adobe Acrobat X Pro), but no luck (no problem to add to View, Edit, o straight to menubar).

Did I miss anything? Is it possible at all?

Code used from BasicPlugin from SDK. Here it is (if needed):

pluginsMenu = AVMenubarAcquireMenuByName(menubar, "Tools");

menuItem = AVMenuItemNew(MyMenuItemTitle, MyMenuItemName, NULL, true, NO_SHORTCUT, 0, NULL, gExtensionID);

     AVMenuItemSetExecuteProc (menuItem, ASCallbackCreateProto(AVExecuteProc, MyPluginCommand), NULL);

     AVMenuItemSetComputeEnabledProc (menuItem, ASCallbackCreateProto(AVComputeEnabledProc, MyPluginIsEnabled), (void *)pdPermEdit);

AVMenuAddMenuItem(pluginsMenu, menuItem, APPEND_MENUITEM);

Plugin menu appears in place if "Tools" changed to "View", "Edit" or even Rotate or other.

Any ideas why it's not possible to add to Tools?

This topic has been closed for replies.