6. menuBar
Prev | Chapter 4. Reference | Next

## 6. menuBar

    <menuBar
      name = NMTOKEN
      helpId = NMTOKEN
      insert = non empty token
    >
      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 or the `insert` attribute may be used to extend the previous definition of a menu bar. More information in About the `insert` child element and the `insert` attribute.

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>

Prev | Up | Next
5. menu | Home | 7. menuItems