1menu_format(3CURSES)       Curses Library Functions       menu_format(3CURSES)
2
3
4

NAME

6       menu_format,  set_menu_format - set and get maximum numbers of rows and
7       columns in menus
8

SYNOPSIS

10       cc [ flag... ] file... -lmenu  -lcurses  [ library... ]
11       #include <menu.h>
12
13       int set_menu_format(MENU *menu, int rows, int cols);
14
15
16       void menu_format(MENU *menu, int *rows, int *cols);
17
18

DESCRIPTION

20       set_menu_format() sets the maximum number of rows and columns of  items
21       that  may be displayed at one time on a menu. If the menu contains more
22       items than can be displayed at once, the menu will be scrollable.
23
24
25       menu_format() returns the maximum number of rows and columns  that  may
26       be  displayed  at  one  time on menu. rows and cols are pointers to the
27       variables used to return these values.
28

RETURN VALUES

30       set_menu_format() returns one of the following:
31
32       E_OK              The routine returned successfully.
33
34
35       E_SYSTEM_ERROR    System error.
36
37
38       E_BAD_ARGUMENT    An incorrect argument was passed to the routine.
39
40
41       E_POSTED          The menu is already posted.
42
43

ATTRIBUTES

45       See attributes(5) for descriptions of the following attributes:
46
47
48
49
50       ┌─────────────────────────────┬─────────────────────────────┐
51       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
52       ├─────────────────────────────┼─────────────────────────────┤
53       │MT-Level                     │Unsafe                       │
54       └─────────────────────────────┴─────────────────────────────┘
55

SEE ALSO

57       curses(3CURSES), menus(3CURSES), attributes(5)
58

NOTES

60       The header <menu.h> automatically includes  the  headers   <eti.h>  and
61       <curses.h>.
62
63
64
65SunOS 5.11                        31 Dec 1996             menu_format(3CURSES)
Impressum