]> ncurses.scripts.mit.edu Git - ncurses.git/blob - Ada95/html/man/menu_opts.3x.html
ncurses 5.0
[ncurses.git] / Ada95 / html / man / menu_opts.3x.html
1 <HTML>
2 <BODY>
3 <PRE>
4        <STRONG>menu_opts</STRONG> - set and get menu options
5
6
7 </PRE>
8 <H2>SYNOPSIS</H2><PRE>
9        <STRONG>#include</STRONG> <STRONG><menu.h></STRONG>
10        int set_menu_opts(MENU *menu, OPTIONS opts);
11        int menu_opts_on(MENU *menu, OPTIONS opts);
12        int menu_opts_off(MENU *menu, OPTIONS opts);
13        OPTIONS menu_opts(const MENU *menu);
14
15
16 </PRE>
17 <H2>DESCRIPTION</H2><PRE>
18        The  function  <STRONG>set_menu_opts</STRONG>  sets  all  the  given menu's
19        option bits  (menu  option  bits  may  be  logically-OR'ed
20        together).
21
22        The  function <STRONG>menu_opts_on</STRONG> turns on the given option bits,
23        and leaves others alone.
24
25        The function <STRONG>menu_opts_off</STRONG>  turns  off  the  given  option
26        bits, and leaves others alone.
27
28        The  function  <STRONG>menu_opts</STRONG> returns the menu's current option
29        bits.
30
31        The following options are defined (all are on by default):
32
33        O_ONEVALUE
34             Only one item can be selected for this menu.
35
36        O_SHOWDESC
37             Display  the  item  descriptions  when  the  menu  is
38             posted.
39
40        O_ROWMAJOR
41             Display the menu in row-major order.
42
43        O_IGNORECASE
44             Ignore the case when pattern-matching.
45
46        O_SHOWMATCH
47             Move the cursor to within the item  name  while  pat-
48             tern-matching.
49
50        O_NONCYCLIC
51             Don't   wrap   around  next-item  and  previous-item,
52             requests to the other end of the menu.
53
54
55 </PRE>
56 <H2>RETURN VALUE</H2><PRE>
57        Except for <STRONG>menu_opts</STRONG>, each routine returns one of the fol-
58        lowing:
59
60        <STRONG>E_OK</STRONG> The routine succeeded.
61
62             System error occurred (see <STRONG>errno</STRONG>).
63
64        <STRONG>E_POSTED</STRONG>
65             The menu is already posted.
66
67
68 </PRE>
69 <H2>SEE ALSO</H2><PRE>
70        <STRONG><A HREF="ncurses.3x.html">curses(3X)</A></STRONG>, <STRONG><A HREF="menu.3x.html">menu(3X)</A></STRONG>.
71
72
73 </PRE>
74 <H2>NOTES</H2><PRE>
75        The header file <STRONG><menu.h></STRONG> automatically includes the header
76        file <STRONG><curses.h></STRONG>.
77
78
79 </PRE>
80 <H2>PORTABILITY</H2><PRE>
81        These routines emulate the System V  menu  library.   They
82        were not supported on Version 7 or BSD versions.
83
84
85 </PRE>
86 <H2>AUTHORS</H2><PRE>
87        Juergen  Pfeifer.   Manual  pages  and  adaptation for new
88        curses by Eric S. Raymond.
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122 </PRE>
123 </BODY>
124 </HTML>