]> ncurses.scripts.mit.edu Git - ncurses.git/blob - Ada95/html/man/form_win.3x.html
ncurses 5.0
[ncurses.git] / Ada95 / html / man / form_win.3x.html
1 <HTML>
2 <BODY>
3 <PRE>
4        <STRONG>form_win</STRONG>  - make and break form window and subwindow asso-
5        ciations
6
7
8 </PRE>
9 <H2>SYNOPSIS</H2><PRE>
10        <STRONG>#include</STRONG> <STRONG><form.h></STRONG>
11        int set_form_win(FORM *form, WINDOW *win);
12        WINDOW *form_win(const FORM *form);
13        int set_form_sub(FORM *form, WINDOW *sub);
14        WINDOW *form_sub(const FORM *form);
15        int scale_form(const FORM *form, int *rows, int *columns);
16
17
18 </PRE>
19 <H2>DESCRIPTION</H2><PRE>
20        Every  form has an associated pair of <STRONG>curses</STRONG> windows.  The
21        form window displays any title and border associated  with
22        the  window;  the form subwindow displays the items of the
23        form that are currently available for selection.
24
25        The first four functions get and set those windows.  It is
26        not necessary to set either window; by default, the driver
27        code uses <STRONG>stdscr</STRONG> for both.
28
29        In the <STRONG>set_</STRONG> functions, window argument of <STRONG>NULL</STRONG> is  treated
30        as  though  it  were  <STRONG>stsdcr</STRONG>.   A form argument of <STRONG>NULL</STRONG> is
31        treated as a request to change  the  system  default  form
32        window or subwindow.
33
34        The  function <STRONG>scale_form</STRONG> returns the minimum size required
35        for the subwindow of <EM>form</EM>.
36
37
38 </PRE>
39 <H2>RETURN VALUE</H2><PRE>
40        Routines that return pointers return <STRONG>NULL</STRONG> on error.   Rou-
41        tines  that  return an integer return one of the following
42        error codes:
43
44        <STRONG>E_OK</STRONG> The routine succeeded.
45
46        <STRONG>E_SYSTEM_ERROR</STRONG>
47             System error occurred (see <STRONG>errno</STRONG>).
48
49        <STRONG>E_BAD_ARGUMENT</STRONG>
50             Routine detected an incorrect or  out-of-range  argu-
51             ment.
52
53        <STRONG>E_POSTED</STRONG>
54             The form has already been posted.
55
56        <STRONG>E_NOT_CONNECTED</STRONG>
57             No items are connected to the form.
58
59
60 </PRE>
61 <H2>SEE ALSO</H2><PRE>
62        <STRONG><A HREF="ncurses.3x.html">curses(3X)</A></STRONG>, <STRONG><A HREF="form.3x.html">form(3X)</A></STRONG>.
63
64        The header file <STRONG><form.h></STRONG> automatically includes the header
65        file <STRONG><curses.h></STRONG>.
66
67
68 </PRE>
69 <H2>PORTABILITY</H2><PRE>
70        These routines emulate the System V forms  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 </PRE>
121 </BODY>
122 </HTML>