]> ncurses.scripts.mit.edu Git - ncurses.git/blob - Ada95/html/man/menu_post.3x.html
ncurses 5.0
[ncurses.git] / Ada95 / html / man / menu_post.3x.html
1 <HTML>
2 <BODY>
3 <PRE>
4        <STRONG>menu_post</STRONG>  -  write or erase menus from associated subwin-
5        dows
6
7
8 </PRE>
9 <H2>SYNOPSIS</H2><PRE>
10        <STRONG>#include</STRONG> <STRONG><menu.h></STRONG>
11        int post_menu(MENU *menu);
12        int unpost_menu(MENU *menu);
13
14
15 </PRE>
16 <H2>DESCRIPTION</H2><PRE>
17        The function <STRONG>post_menu</STRONG> displays a menu to  its  associated
18        subwindow.   To trigger physical display of the subwindow,
19        use  <STRONG>refresh</STRONG>  or  some  equivalent  <STRONG>curses</STRONG>  routine   (the
20        implicit  <STRONG>doupdate</STRONG>  triggered  by  an <STRONG>curses</STRONG> input request
21        will do). <STRONG>post_menu</STRONG> resets the  selection  status  of  all
22        items.
23
24        The  function  <STRONG>unpost_menu</STRONG> erases menu from its associated
25        subwindow.
26
27
28 </PRE>
29 <H2>RETURN VALUE</H2><PRE>
30        These routines return one of the following:
31
32        <STRONG>E_OK</STRONG> The routine succeeded.
33
34        <STRONG>E_SYSTEM_ERROR</STRONG>
35             System error occurred (see <STRONG>errno</STRONG>).
36
37        <STRONG>E_BAD_ARGUMENT</STRONG>
38             Routine detected an incorrect or  out-of-range  argu-
39             ment.
40
41        <STRONG>E_POSTED</STRONG>
42             The menu has already been posted.
43
44        <STRONG>E_BAD_STATE</STRONG>
45             Routine was called from an initialization or termina-
46             tion function.
47
48        <STRONG>E_NO_ROOM</STRONG>
49             Menu is too large for its window. You should consider
50             to use <STRONG>set_menu_format()</STRONG> to solve the problem.
51
52        <STRONG>E_NOT_POSTED</STRONG>
53             The menu has not been posted.
54
55        <STRONG>E_NOT_CONNECTED</STRONG>
56             No items are connected to the menu.
57
58
59 </PRE>
60 <H2>SEE ALSO</H2><PRE>
61        <STRONG><A HREF="ncurses.3x.html">curses(3X)</A></STRONG>, <STRONG><A HREF="menu.3x.html">menu(3X)</A></STRONG>.
62
63
64 </PRE>
65 <H2>NOTES</H2><PRE>
66
67
68 </PRE>
69 <H2>PORTABILITY</H2><PRE>
70        These routines emulate the System V  menu  library.   They
71        were not supported on Version 7 or BSD versions.
72
73
74 </PRE>
75 <H2>AUTHORS</H2><PRE>
76        Juergen  Pfeifer.   Manual  pages  and  adaptation for new
77        curses by Eric S. Raymond.
78
79
80
81
82
83
84
85
86
87
88
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>