Defining Menu Items

To define menu items, proceed as follows:

  1. Do one of the following:

    • Create a new *.ini file
    • Open an existing *.ini file.
  2. Enter a name for the section, e.g., [Input].

    Make sure that the name is used only once in the file.

  3. Enter the window that contains the menu, e.g.,

    WINDOW=databasebrowser.

  4. Enter a name for the menu, e.g., MENU=~My Menu.

    When you enter a new menu name, a new menu is created. When you enter the name of an existing menu, the menu item is added to the existing menu.

  5. If desired, enter a name for the submenu, e.g., SUBMENU=My ~Submenu.

    When you enter a new submenu name, a new submenu is created. When you enter the name of an existing submenu, the menu item is added to the existing submenu.

  6. Enter the name the menu item will have, e.g.

    ITEM=~Open Text Editor.

    Note

    The ~ in menu name, submenu name, and menu item name is used to denote the mnemonic key. You can place the ~ anywhere in the name, but make sure that each mnemonic (including the existing ones) is used only once in a given window.

  7. Enter a description, e.g.

    DESCRIPTION=opens external text editor.

  8. Enter where you want a separator, e.g.

    SEPARATOR=before.

  9. Enter the script file, e.g.

    FILE=openeditor.txt.

The next time ASCET is started, My Menu will be generated in the Component Manager.

See also

Window Names

Hints for Defining Menu Items

Menu Item Definition