Adding a New Menu

To add a new menu to Viewer, enter the InsertMenu command in the [CONFIG] section of the .MVP file. This command has the following syntax:

InsertMenu("menu-id", "menu-name", menu-position)

Menu-id is a name, enclosed in quotes, that Viewer uses internally to identify your menu. Use this identifier in commands that add items to the menu.

Note:

The following menu IDs are used for standard Viewer menus and cannot be given in an InsertMenu command: “mnu_file” (File), “mnu_edit” (Edit), “mnu_bookmark” (Bookmark), and “mnu_help” (Help).

Menu-name is the name, enclosed in quotes, that Viewer displays on the menu bar.

Menu-position is a number telling Viewer which position on the menu bar the new menu name will occupy. Positions are numbered from left to right, with position 0 furthest to the left.

For example, to add a menu named “Utilities” to Viewer, enter the following command in the [CONFIG] section of the project file:

InsertMenu("menu_util", "Utilities", 3)

The label “Utilities” appears in position 3 on the Viewer menu bar, as shown in the following illustration:

Note:

To make sure your title follows the user-interface standards for Microsoft Windows applications, put custom menus in position 2 (or a later position) on the menu bar. (According to these standards, the File and Edit commands should occupy positions 0 and 1, and the Help command should occupy the last position.)