Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

IDCS5 Win Menu Position

Explorer ,
Aug 11, 2010 Aug 11, 2010

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

TOPICS
SDK
462
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Mentor ,
Aug 11, 2010 Aug 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Aug 11, 2010 Aug 11, 2010
LATEST

Thanks Dirk. That did the trick.

R,

John

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines