4 <!-- Manpage converted by man2html 3.0.1 -->
8 <B>form_field_new</B> - create and destroy form fields
12 <H2>SYNOPSIS</H2><PRE>
13 <B>#include</B> <B><form.h></B>
14 FIELD *new_field(int height, int width,
15 int toprow, int leftcol,
16 int offscreen, int nbuffers);
17 FIELD *dup_field(FIELD *field, int toprow, int leftcol);
18 FIELD *link_field(FIELD *field, int toprow, int leftcol);
19 int free_field(FIELD *field);
23 <H2>DESCRIPTION</H2><PRE>
24 The function <B>new_field</B> allocates a new field and initial-
25 izes it from the parameters given: height, width, row of
26 upper-left corner, column of upper-left corner, number
27 off-screen rows, and number of additional working buffers.
29 The function <B>dup_field</B> duplicates a field at a new loca-
30 tion. Most attributes (including current contents, size,
31 validation type, buffer count, growth threshold, justifi-
32 cation, foreground, background, pad character, options,
33 and user pointer) are copied. Field status and the field
34 page bit are not copied.
36 The function <B>link_field</B> acts like <B>dup_field</B>, but the new
37 field shares buffers with its parent. Attribute data is
40 The function <B>free_field</B> de-allocates storage associated
45 <H2>RETURN VALUE</H2><PRE>
46 The function, <B>new_field</B>, <B>dup_field</B>, <B>link_field</B> return <B>NULL</B>
49 The function <B>free_field</B> returns one of the following:
51 <B>E_OK</B> The routine succeeded.
54 System error occurred (see <B>errno</B>).
57 Routine detected an incorrect or out-of-range argu-
62 <H2>SEE ALSO</H2><PRE>
63 <B><A HREF="ncurses.3x.html">curses(3x)</A></B>, <B><A HREF="form.3x.html">form(3x)</A></B>.
68 The header file <B><form.h></B> automatically includes the header
69 file <B><curses.h></B>.
73 <H2>PORTABILITY</H2><PRE>
74 These routines emulate the System V forms library. They
75 were not supported on Version 7 or BSD versions.
77 It may be unwise to count on the set of attributes copied
78 by <B><A HREF="dup_field.3x.html">dup_field(3x)</A></B> being portable; the System V forms
79 library documents are not very explicit on what gets
85 Juergen Pfeifer. Manual pages and adaptation for new
86 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>