Next: , Previous: The menu driver, Up: Menu Procedures   [Contents][Index] Menu sizes

Procedure: set-menu-format! menu rows cols

The procedure set-menu-format! sets the maximum display size of the given menu. If this size is too small to display all menu items, the menu will be made scrollable. If this size is larger than the menus subwindow and the subwindow is too small to display all menu items, post-menu will fail.

The default format is 16 rows, 1 column. A zero row or column argument is interpreted as a request not to change the current value.

This procedure returns E_OK, E_SYSTEM_ERROR, E_BAD_ARGUMENT if the routine detected an incorrect or out-of-range argument, or E_POSTED if the menu is already posted.

Procedure: menu-format

This procedure returns a two-element list containing the display size of the menu in rows and columns