4 \fBmenu_format\fR - set and get menu sizes
6 \fB#include <menu.h>\fR
8 int set_menu_format(MENU *menu, int rows, int cols);
10 int menu_format(const MENU *menu, int *rows, int *cols);
13 The function \fBset_menu_format\fR sets the maximum display size of the given
14 window. If this size is too small to display all menu items, the menu will be
17 The default format is 16 rows, 1 column. Calling \fBset_menu_format\fR with a
18 null menu pointer will change this default. A zero row or column argument to
19 \fBset_menu_format\fR is interpreted as a request not to change the current
22 The function \fBmenu_format\fR returns the maximum-size constraints for the
23 given menu into the storage addressed by \fBrows\fR and \fBcols\fR.
25 These routines returns one of the following:
28 The routine succeeded.
31 System error occurred (see \fBerrno\fR).
34 Routine detected an incorrect or out-of-range argument.
37 The menu is already posted.
39 \fBcurses\fR(3X), \fBmenu\fR(3X).
41 The header file \fB<menu.h>\fR automatically includes the header file
44 These routines emulate the System V menu library. They were not supported on
45 Version 7 or BSD versions.
47 Juergen Pfeifer. Manual pages and adaptation for new curses by Eric
50 .\"# The following sets edit modes for GNU EMACS