7. menuBar

<menuBar
  name = NMTOKEN
  helpId = NMTOKEN
>
  Content: [ insert | menu ]+ 
</menuBar>

<insert />

<menu 
  name = NMTOKEN
/>

Specifies a menu bar. A menu bar contains references to menu elements declared elsewhere in the GUI specification.

The insert child element may be used to extend the previous declaration of the menu bar. Without an insert child element, a new declaration for menu bar "foo" is understood as being a redefinition of menu bar "foo". The insert child element specifies where to insert the menus found in the previous declaration. The insert element must be the first or the last child of a menuBar.

Attributes:

name

Required. Unique name identifying the menu bar in this GUI specification.

helpId

Online help ID of the menu bar.

Example: standard menu bar:

  <menuBar name="menuBar" helpId="menuBar">
    <menu name="fileMenu" />
    <menu name="selectMenu" />
    <menu name="editMenu" />
    <menu name="searchMenu" />
    <menu name="viewMenu" />
    <menu name="toolsMenu" />
    <menu name="configSpecificMenu" />
    <menu name="windowMenu" />
    <menu name="optionsMenu" />
    <menu name="helpMenu" />
  </menuBar>

Example: add extra menu charactersMenu at the end of the standard menu bar:

  <menuBar name="menuBar">
    <insert />
    <menu name="charactersMenu" />
  </menuBar>