Skip to main content
JADarnell
Inspiring
August 11, 2010
Question

IDCS5 Win Menu Position

  • August 11, 2010
  • 1 reply
  • 481 views

Hello All:

   I am attempting to place a new menu option on the File menu.  I have looked at other posts that discuss how to do this and based upon them, this is what I have done so far (this is for CS5 only).

In the project header:

#define kPSUIPluginsMenuPath        "Main:&File:"

IN the .FR file:

resource ActionDef (kSDKDefActionResourceID)
{
    {

        kPSUIActionComponentBoss,
        kPSUIPagesDialogActionID,       
        kPSUIDialogMenuItemKey,               //  Evaluates to "PDF Submission"
        kOtherActionArea,           
        kNormalAction,               
        kDisableIfLowMem | kDisableIfNoFrontDocument | kDisableIfNoFrontLayoutView,   
        kInvalidInterfaceID,       
        kSDKDefVisibleInKBSCEditorFlag,
    }
};

resource MenuDef (kSDKDefMenuResourceID)
{
    {
        // The Plug-ins menu sub-menu items for this plug-in.
        kPSUIPagesDialogActionID,
        kPSUIPluginsMenuPath,
        kExportMenuPosition + 1,  
        kSDKDefIsNotDynamicMenuFlag,

    }
};

The code compiles cleanly but when I open up InDesign, I get the following errors/warnings WRT this plugin:

First assert:

Submenu Main:&File: (ActionID kPSUIPagesDialogActionID) should not be registered with action manager(or should have no name)!

Second assert:

Already have different position info for this submenu(old 1401.0000, new 20.0000)!

When InDesign finally finishes booting up, I cannot find this menu option.

Can anyone help me find out what I am doing wrong?

R,

John

This topic has been closed for replies.

1 reply

Legend
August 11, 2010

You're creating a sub-menu on the file menu where you just want a menu item.

Does your kPSUIPluginsMenuPath eventually have a final colon?

It should be  "Main:&File"  .

Dirk

JADarnell
JADarnellAuthor
Inspiring
August 11, 2010

Thanks Dirk. That did the trick.

R,

John