AddMenu

void AddMenu(string caption, string itemCaptions)

AddMenu adds a new menu item with the specified caption to the menubar. The string itemCaptions specifies the submenu items. The itemCaptions string can contain format characters to seperate items and format the text.

The format characters are as follows

` (Grave) Tells the interpreter to right justify the following text
: (Colon) Specifies the end of current item, the following will be the next item.
--! (Hyphen-Hyphen-Exclamation Mark) Specifies that the menu item will just be a seperator.
# (Pound) Specifies the item's function key
^ (Circumflex) Specifies the item's control+key combination
Example
AddMenu(
    " File "
        "Restart Game`#9:"
+
        "Save Game`#5:"+
        "Restore Game`#7:"+
        "--! :"+
        "Quit`^q"
)