Previous: Control spacing between menu items, Up: Menu options   [Contents][Index] Associate menus with window

Procedure: set-menu-win! menu win
Procedure: set-menu-sub! menu subwin
Procedure: menu-win menu
Procedure: menu-sub menu
Procedure: scale-menu menu

Every menu has an associated pair of curses windows. The menu window displays any title and border associated with the window; the menu subwindow displays the items of the menu that are currently available for selection.

The first four functions get and set those windows. It is not necessary to set either window; by default, the driver code uses stdscr for both.

The procedure scale-menureturns the minimum size required for the subwindow of menu.

set-menu-win! and set-menu-sub! will return one of the following, E_OK, E_SYSTEM_ERROR, E_BAD_ARGUMENT, or E_POSTED if the menu has already been posted.