
589
ADOBE FRAMEMAKER SCRIPTING GUIDE
Function Summary
Last updated 9/26/2011
Syntax
DefineAndAddMenu(name, label)
Parameters
MenuItemInMenu
Description
Determines if a menu item or menu is on a menu or menu bar.
On success, the method returns the menu on which the menu item is found.
On failure, the method returns one of the following values to
FA_errno
:
Returns
Menu
Syntax
MenuItemInMenu(menuitem, recursive)
Parameters
Delete
Description
Deletes a menu or menu item.
See
Delete
under the AFrame class for more information.
Parameter name
Data Type
Optional
Description
name
string
No
A unique name for the new menu. If the user or an ESTK client
has already defined a command or menu with this name, the
new menu replaces it.
label
string
No
The title of the menu as it appears on the menu bar or menu.
Error
Reason
Constants.FE_WrongProduct (-60)
Current FrameMaker product does not support this operation or
fmbatch
is running.
Constants.FE_BadOperation (-27)
Parameters specified an invalid operation.
Constants.FE_BadParameter (-43)
The specified parameter has an invalid value.
Parameter name
Data Type
Optional
Description
menuitem
MenuItemCom
ponent
No
The menu item or menu to find.
recursive
bool
No
Specifies whether to search the submenus of the menu or menu
bar specified by
menuitem
. Specify
True
to search them.