Skip to main content
Inspiring
September 25, 2017
Answered

Not adding menu item 'MenuName' because it has been suppressed by the IMenuCustomizationData

  • September 25, 2017
  • 1 reply
  • 557 views

Hi!

I inserted a new new popup menu item before the last popup menu item.

I definied the new menuitem on the standard way and I don't understand why hided always this menu item?  ... and why only this menu item?

Before I never had problem with menu definitions. 

I get always

.. but it should be

Declaration in the header file:

DECLARE_PMID(kActionIDSpace, kPnlTrvDownloadOutputTemplateActionId, kPnlTrvPrefix + 53)

Definitions in the .fr file:

// Set as root node template with component

kPnlTrvSetAsRootNodeActionID,

kPnlTrvComponentTreeMenuPath,

7.0,

kSDKDefIsNotDynamicMenuFlag,

// Download template

kPnlTrvDownloadOutputTemplateActionId,

kPnlTrvComponentTreeMenuPath,

8.0,

kSDKDefIsNotDynamicMenuFlag,

DKDefIsNotDynamicMenuFlag,

//Set as root node

kPnlTrvActionComponentBoss,

kPnlTrvSetAsRootNodeActionID,

kPnlTrvSetAsRootNodeKey, // Key to the name of this action

kOtherActionArea,

kNormalAction,

kCustomEnabling,

0,

kFalse,

kPnlTrvActionComponentBoss,

kPnlTrvDownloadOutputTemplateActionId,

kPnlTrvDownloadOutputTemplateKey, // Key to the name of this action

kOtherActionArea,

kNormalAction,

kCustomEnabling,

0,

kFalse,

// Update selected OutputTemplate

I traced Menubuild action and I got:

BuildListOfUpdatedMenuItems for menu ComponentTree:HelpNode:RtMouseDefault, found 10 items

Found 0 dynamic menu items

BuildListOfSubmenus for menu ComponentTree:HelpNode:RtMouseDefault, found 1 possible submenus

Not adding menu item 'Download selected template' because it has been suppressed by the IMenuCustomizationData

Which parameter can generate this fail.

I used before IMenuCustomizationData.h header file but i deleted the all references and doublechecked it.

I cleaned application and rebuilded again but not helped.

Thanks in advance

Regards

Karoly

This topic has been closed for replies.
Correct answer Dirk Becker

My first guess would be that your action component does not handle custom enabling.

As you mention IMenuCustomizationData, try also the menu action Window >> Workspace >> Show Full Menu ...

Restarting InDesign with all modifier keys (clear preferences / saved data) may also help.

1 reply

Karoly65Author
Inspiring
September 25, 2017

DECLARE_PMID(kActionIDSpace, kPnlTrvDownloadOutputTemplateActionId, kPnlTrvPrefix + 53)

Id = prefix + addition

I don't know why but if I have greater than 52 in addition I get always hidden menu item :O

I changed addition to 49 and worked. But for all number which greater then 52 I got hiddem menu item.

Workaround:

We have two prefix and our plugin worked fine with the second prefix for all values (0-255).

I checked definitiions for double ActionId but they are right. 

Anyway it's very strange.

Dirk BeckerCorrect answer
Legend
September 25, 2017

My first guess would be that your action component does not handle custom enabling.

As you mention IMenuCustomizationData, try also the menu action Window >> Workspace >> Show Full Menu ...

Restarting InDesign with all modifier keys (clear preferences / saved data) may also help.

Karoly65Author
Inspiring
September 26, 2017

Thanx Dirk.

Your solution is right.

Clear preferences  + Window >> Workspace >> Show Full Menu ... 

Thank you for your instructions.