4 <!-- Manpage converted by man2html 3.0.1 -->
8 <B>form_win</B> - make and break form window and subwindow asso-
13 <H2>SYNOPSIS</H2><PRE>
14 <B>#include</B> <B><form.h></B>
15 int set_form_win(FORM *form, WINDOW *win);
16 WINDOW *form_win(const FORM *form);
17 int set_form_sub(FORM *form, WINDOW *sub);
18 WINDOW *form_sub(const FORM *form);
19 int scale_form(const FORM *form, int *rows, int *columns);
23 <H2>DESCRIPTION</H2><PRE>
24 Every form has an associated pair of <B>curses</B> windows. The
25 form window displays any title and border associated with
26 the window; the form subwindow displays the items of the
27 form that are currently available for selection.
29 The first four functions get and set those windows. It is
30 not necessary to set either window; by default, the driver
31 code uses <B>stdscr</B> for both.
33 In the <B>set_</B> functions, window argument of <B>NULL</B> is treated
34 as though it were <B>stsdcr</B>. A form argument of <B>NULL</B> is
35 treated as a request to change the system default form
38 The function <B>scale_form</B> returns the minimum size required
39 for the subwindow of <I>form</I>.
43 <H2>RETURN VALUE</H2><PRE>
44 Routines that return pointers return <B>NULL</B> on error. Rou-
45 tines that return an integer return one of the following
48 <B>E_OK</B> The routine succeeded.
51 System error occurred (see <B>errno</B>).
54 Routine detected an incorrect or out-of-range argu-
58 The form has already been posted.
60 <B>E_NOT_CONNECTED</B>
61 No items are connected to the form.
65 <H2>SEE ALSO</H2><PRE>
66 <B><A HREF="ncurses.3x.html">curses(3x)</A></B>, <B><A HREF="form.3x.html">form(3x)</A></B>.
72 The header file <B><form.h></B> automatically includes the header
73 file <B><curses.h></B>.
77 <H2>PORTABILITY</H2><PRE>
78 These routines emulate the System V forms library. They
79 were not supported on Version 7 or BSD versions.
84 Juergen Pfeifer. Manual pages and adaptation for new
85 curses by Eric S. Raymond.
132 Man(1) output converted with
133 <a href="http://www.oac.uci.edu/indiv/ehood/man2html.html">man2html</a>