User Tools

Site Tools


jvs:cigal:manual:chapter1:makemenu

CIGAL Reference Manual, Chapter 1 (Topics): makemenu

Makemenu -- Creating a CIGAL Command Menu

There are 2 steps to making a CIGAL menu: defining the menu and then loading the menu into CIGAL's system menu library.

Defining the Menu

A menu is defined by specifying the commands to be associated with each menu entry, as well as display help information to make the menu easy to use. This usually involves creating a disk file in which you enter all of the menu information; you can alternatively enter this information directly into the MENU command (see below) but creating a disk file is generally easier.

To create the menu file you can use CIGAL's EDIT command (see EDIT(2)). First select a menu name (up to 8 characters) and then create a file with that name and a “.MNU” suffix. For example, to create a menu called MNUTEST, enter:

    ed mnutest.mnu
    menu name [dflg] {
        and then entering the menu contents on subsequent lines, ending with a:
                     }
    command line.

The format of the menu file:

When reading menus the format of the menu itself indicates the menu type, so you don't need the FLAG argument unless you want to indicate in which position to load a Pulldown menu. (If there is no FLAG, Pulldown menus will be loaded in the next empty bar position.)

See Also:
EDIT(2)

CIGAL Home, CIGAL Manual, Topics List, Manual Help

jvs/cigal/manual/chapter1/makemenu.txt · Last modified: 2023/02/23 18:43 (external edit)