Adobe FrameMaker-12 Object Model JS: Menu

FrameMaker 12.0

Class

Menu

 

QuickLinks

AddCommandToMenu, AddMenuToMenu, AnimateMenu, DefineAndAddCommand, DefineAndAddMenu, Delete, GetProps, MenuItemInMenu, ObjectValid, SetProps

Properties

PropertyTypeAccessDescription
FirstMenuItemInMenuFMObject readwrite
Labelstring readwrite
MenuItemIsEnabledint readonly
MenuTypeint readonly
Namestring readonly
NextMenuItemInMenuFMObject readwrite
NextMenuItemInSessionFMObject readonly
PrevMenuItemInMenuFMObject readwrite

Methods

Instances

number AddCommandToMenu (command: Command)

ParameterTypeDescription
commandCommand

int AddMenuToMenu (menu: Menu)

ParameterTypeDescription
menuMenu

int AnimateMenu (menuitem: Object, sleep: int, realLabel: string, docOrBook: Object, action: bool)

ParameterTypeDescription
menuitemObject
sleepint
realLabelstring
docOrBookObject
actionbool

Command DefineAndAddCommand (cmdNum: number, name: string, label: string, shortcut: string)

ParameterTypeDescription
cmdNumnumber
namestring
labelstring
shortcutstring

Menu DefineAndAddMenu (name: string, label: string)

ParameterTypeDescription
namestring
labelstring

int Delete ()

PropVals GetProps ()

Menu MenuItemInMenu (menuitem: MenuItemComponent, recursive: bool)

ParameterTypeDescription
menuitemMenuItemComponent
recursivebool

int ObjectValid ()

void SetProps (setVal: PropVals)

ParameterTypeDescription
setValPropVals

Element of

Doc.MenuBar

Doc.ViewOnlyMenuBar

Used in:

int Menu.AddMenuToMenu (menu: Menu)

Return

Menu Globals.DefineMenu (name: string, label: string)

Menu Menu.DefineAndAddMenu (name: string, label: string)

Menu Menu.MenuItemInMenu (menuitem: MenuItemComponent, recursive: bool)

Menu app.GetNamedMenu (name: string)

Menu app.NewNamedMenu (name: string)

Jongware, 18-Jan-2015 v1.0Contents :: Index