The MENU statement defines the contents of a menu resource. A menu resource is a collection of information that defines the appearance and function of an application menu. A menu can be used to create an action bar.
The MENU statement has the form:
─MENU-menuid──┬────────────┬┬───────────┬──
└─loadoption─┘└─memoption─┘
────┬────────────┬──────────────────────────
└──codepage──┘
┌─────────────────────┐
│
┌──PRESPARAMS─statement─┴┐
────BEGIN──┴────────────────────────┴───────
┌────────────────────────┐
│
────────┬───MENUITEM─statement───┼──END────
│ │
└───SUBMENU─statement────┘
menuid (USHORT)
SeeResource Load and Memory Options for a description of LOADOPTION.
See Resource Load and Memory Options for a description of MEMOPTION.
Example
Following is an example of a complete MENU statement:
MENU "sample"
BEGIN
MENUITEM "~Alpha", 100, MIS_TEXT
SUBMENU "~Beta", 101, MIS_TEXT
BEGIN
MENUITEM "~Green", 200, MIS_TEXT
MENUITEM "~Blue", 201, MIS_TEXT,MIA_CHECKED
END
END