Setting commands that appear in a menu

image\bltlrgsq_shg.gif Example

 

The [menu bar 1] section of the SRC file defines what menus appear in the Imagenation menu bar. Use a series of [menu x label] sections to list the commands that appear in each menu.

To define the commands that appear in a menu:

1. Open the SRC file into a text editor.

2. Locate the required [menu x label] section, or type one in if you are defining a new menu.

· Replace the x variable with the number of the menu bar that contains the menu that you are defining (usually 1).

· Replace the label variable with the menu label defined in the [menu bar x] section. For details, see Defining menu bars.

In the [menu x label] section that you defined:

3. Locate the "command id=" keyname. After the equal sign (=), type the command identifier of the menu that you are defining. For a list of standard identifiers, see Command Identifiers by Menu.

4. In the "item list x=" keyname, type the commands to appear in the menu. For details, see Defining item lists.

6. If required, use [menu item cmd] sections to define the submenus that are in the main menu. For details, see Setting commands that appear in a submenu.

7. Repeat steps 2 to 6 for each menu that you are defining.

8. Save the SRC file and compile it. (For details, see Compiling a CFG file.)

See also

[menu x label] section

Configuring Menu Bars and Menus

Setting commands that appear in a submenu

Command Identifiers by Menu