Name
CreateMenu -- create a menu strip (V6.0)
Synopsis
[id] = CreateMenu(id, table)
Function
This function can be used to create a menu strip that can later be attached to one or more displays by calling SetDisplayAttributes() on an existing display or by specifying the Menu tag in the @DISPLAY preprocessor command or in the CreateDisplay() call.

You have to pass an identifier for the new menu strip or Nil. If you pass Nil, CreateMenu() will return a handle to the new menu strip which you can then use to refer to this menu strip.

You also need to pass a table containing the actual menu tree definition to this function. Menus are defined as a tree structure that is composed of a master table that contains various subtables. See MENU for a detailed description of menu tree tables.

This command is also available from the preprocessor: Use @MENU to create menu strips at startup time!

Inputs
id
identifier for the menu strip or Nil for auto id select
table
menu tree definition
Results
id
optional: identifier of the new menu; will only be returned when you pass Nil as argument 1 (see above)
Example
See MENU


Show TOC