Mombu the Computer Design Forum

Mombu the Computer Design Forum > Computer_Design > Put new menu in a concrete position inside File menu
REGISTER NOW! Search Today's Posts Mark Forums Read




Reply
 
Thread Tools Search this Thread Display Modes
1 8th April 15:52
External User
 
Posts: 1
Default Put new menu in a concrete position inside File menu



Hi all,

I need to put a new menu in a concrete position in the File menu:

#define kNewExportMenuKey kTxtExpStringPrefix "kNewExportMenuKey"
#define kNewExportMenuPath "Main:&File:" kNewExportMenuKey
#define kNewExportTargetMenuPath kNewExportMenuPath

With this code the new menu appears at the end of Menu File.
File ----> --------------------
Exit
New Menu->

How do I create this menu for example within File under the Export ...?
File ----> ---------------------
Adobe PDF presets ->
Export...
Cross-media Export->
New Menu->
---------------------

Thanks in advance.
  Reply With Quote
SPONSORED LINKS BY GOOGLE

 


2 8th April 20:59
jim_birkenseer
External User
 
Posts: 1
Default Put new menu in a concrete position inside File menu



Hi juanma,

You set the menu item's position in your plug-in's MenuDef resource in the .fr file. In the example below, your menu item should appear just after the Export menu item. You can find the locations of the various menu items InDesign uses in the AdobeMenuPositions.h file in the SDK.

resource MenuDef (kSDKDefMenuResourceID)
{
{
kMyPIActionID,
kMyPIMenuPath,
kExportMenuPosition + 1, // This line sets the position
kSDKDefIsNotDynamicMenuFlag,
}
};

I hope this helps!

-- Jim
  Reply With Quote
3 9th April 06:46
External User
 
Posts: 1
Default Put new menu in a concrete position inside File menu


Hi Jim.

Thank you very much for your help.

Now teh problem is that my New Menu is really a submenu with three entries:

File ----> ---------------------
Adobe PDF presets ->
Export...
Cross-media Export->
New Menu-> SubMenu 1
SubMenu 2
SubMenu 3
---------------------

(*) How do I declare a new path for those submenus?

resource MenuDef (kSDKDefMenuResourceID)
{
{
kMyPIActionID,
kMyPIMenuPath,
kExportMenuPosition + 1, // This line sets the position
kSDKDefIsNotDynamicMenuFlag,

kSubMenu1ActionID,
(*)kSubMenuPath, //????
kSDKDefAlphabeticPosition,
kSDKDefIsNotDynamicMenuFlag,
}
};

(*) #define kSubMenuPath "Main:&File:New Menu"
A new entry is created but not link with the existing menu "New Menu".

Thanks in advance.

Best regards,

Juanma.
  Reply With Quote
SPONSORED LINKS BY GOOGLE

 


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes







Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
Also visit Ogoun the Usenet Archive
666