Adding Custom Items to the Help Menu

A Help menu may include items that give help on particular Viewer features. For example, it might include items that jump to the following Help topics:

Viewer Procedures

Viewer Menu Commands

You can add these menu items the same way as you added the standard Help and About commands: by using the AppendItem Viewer command. Assuming the title Help file is named TITLE.MVH, the Viewer Procedures topic has context string “ViewerProcedures,” and the Viewer Menu Commands topic has context string “ViewerMenus,” the [CONFIG] section of TITLE.MVP would appear as follows:

[CONFIG]
.
.
.
AppendItem("mnu_help", "mvproc", "Viewer &Procedures",
           `MVHelp(hwndApp, qchPath, `title.mvh',
           "JI(`title.mvh', `ViewerProcedures')" )')
AppendItem("mnu_help", "mvmenu", "Viewer &Menu Commands",
           `MVHelp(hwndApp, qchPath, `title.mvh',
           "JI(`title.mvh', `ViewerMenus')" )')

These AppendItem commands are similar to the commands that put the standard Help on Viewer item on the Help menu. The differences in this example are the following:

The text appearing on the menu (“Viewer Procedures” and “Viewer Menu Commands”)

The Viewer Help file (TITLE.MVH)

The JI command passed as the third parameter to MVHelp to specify which topic in TITLE.MVH to jump to after the Viewer opens TITLE.MVH (“ViewerProcedures” for the Viewer Procedures item, “ViewerMenus” for the Viewer Menu Commands item)