Adobe 65030365 - FrameMaker - PC Manual page 594

Scripting guide
Hide thumbs Also See for 65030365 - FrameMaker - PC:
Table of Contents

Advertisement

ADOBE FRAMEMAKER SCRIPTING GUIDE
Function Summary
AddCommandToMenu
Description
Adds a FrameMaker product command or a client-defined command to a menu.
adds the command at the bottom of the specified menu. To change a command's position on
AddCommandToMenu()
a menu, set its
PrevMenuItemInMenu
To add a command that you have created, set the
call that created the command.To add a FrameMaker product command, you must get its object. To get its object, call
with the
GetNamedObject()
The method returns the command, on success.
On failure, the method returns one of the following values to
Error
Constants.FE_WrongProduct (-60)
Constants.FE_BadOperation (-27)
Constants.FE_NotCommand (-73)
Constants.FE_NotMenu (-72)
Constants.FE_BadParameter (-43)
Constants.FE_SystemError (-42)
Returns
number
Syntax
AddCommandToMenu(command)
Parameters
Parameter name
command
AddMenuToMenu
Description
Adds a FrameMaker product menu or a menu that you have created to another menu or menu bar.
To add a menu to one of FrameMaker menus or menu bars, you must get the menu or menu bar's object. To get its
object, call
GetNamedObject()
Note: Your menu appears only on the menu bar you specify. For example, if you only add a menu to the
menu bar, the menu will not appear if the user switches to quick menus. For your menu to appear after the user has
switched to quick menus, you must also add it to
The following table lists the types of menus you can add a menu to and how FrameMaker implements the added menu.
and
NextMenuItemInMenu
command
parameter set to its name.
objectName
Reason
Current FrameMaker product does not support this operation or
Parameters specified an invalid operation.
The
command
paramter did not specify a command.
The specified menu does not exist.
The specified parameter has an invalid value.
System Error
Data Type
Optional
No
Command
with the
parameter set to its name.
objectName
!QuickMakerMainMenu
Last updated 9/26/2011
properties.
parameter to the object returned by the
:
FA_errno
Description
The command to add.
.
586
DefineCommand()
fmbatch
is running.
!MakerMainMenu

Advertisement

Table of Contents
loading

This manual is also suitable for:

Framemaker 10

Table of Contents