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 menu. If this size is too small to display all menu items, the menu will be
15 made scrollable. If this size is larger than the menus subwindow and the
16 subwindow is too small to display all menu items, \fBpost_menu()\fR will fail.
18 The default format is 16 rows, 1 column. Calling \fBset_menu_format\fR with a
19 null menu pointer will change this default. A zero row or column argument to
20 \fBset_menu_format\fR is interpreted as a request not to change the current
23 The function \fBmenu_format\fR returns the maximum-size constraints for the
24 given menu into the storage addressed by \fBrows\fR and \fBcols\fR.
26 These routines returns one of the following:
29 The routine succeeded.
32 System error occurred (see \fBerrno\fR).
35 Routine detected an incorrect or out-of-range argument.
38 The menu is already posted.
40 \fBcurses\fR(3X), \fBmenu\fR(3X).
42 The header file \fB<menu.h>\fR automatically includes the header file
45 These routines emulate the System V menu library. They were not supported on
46 Version 7 or BSD versions.
48 Juergen Pfeifer. Manual pages and adaptation for new curses by Eric
51 .\"# The following sets edit modes for GNU EMACS