Menus

You can define a custom menu to add to one of the standard menus.

Format

<Menu id="name" label="display_label" labelKey="label_key" systemMenu="menu_name"
showLabel="true_false" showIcon="true_false" separatorBefore="true_false" separatorAfter="true_
false" offset="integer" mnemonic="mnemonic_char" mnemonicKey="mnemonic_key"/>

where:

id (required) is a unique identifier for the menu that you are adding.

label (required) is the display name for the menu as it appears on the user interface (provided that showLabel is set to true).

labelKey identifies the label for localization purposes.

systemMenu (required) identifies the standard menu to which the custom menu is to be added. The value of menu_name is one of the following:

  • file
  • edit
  • insert*
  • view*
  • tools*
  • window*
  • generate
  • help*
  • file.project
  • file.outputs
  • file.models
  • edit.stream
  • edit.node
  • edit.outputs
  • edit.models
  • edit.project
  • tools.repository
  • tools.options
  • tools.streamProperties

* only valid if adding to the main IBM® SPSS® Modeler window

showLabel specifies whether the display label of the item is to be shown on the user interface.

showIcon specifies whether the icon associated with the item is to be shown on the user interface.

separatorBefore specifies whether a separator (for example, a horizontal bar for menu items or a space for toolbar buttons) is to be added to the menu before this new item.

separatorAfter specifies whether a separator is to be added to the menu after this new item.

offset is a non-negative integer that defines the position of the new item; for example, an offset of 0 adds it as the first item (the default is to add it at the end).

mnemonic is the alphabetic character used in conjunction with the Alt key to activate this control (for example, if you give the value S, the user can activate this control by means of Alt-S).

mnemonicKey identifies the mnemonic for localization purposes. If neither mnemonic nor mnemonicKey is used, no mnemonic is available for this control. See the topic Access Keys and Keyboard Shortcuts for more information.