1 .'" $Id: form_field_new.3x,v 0.6 1997/12/06 22:07:19 tom Exp $
3 .TH form_field_new 3X ""
5 \fBform_field_new\fR - create and destroy form fields
7 \fB#include <form.h>\fR
9 FIELD *new_field(int height, int width,
10 int toprow, int leftcol,
11 int offscreen, int nbuffers);
13 FIELD *dup_field(FIELD *field, int toprow, int leftcol);
15 FIELD *link_field(FIELD *field, int toprow, int leftcol);
17 int free_field(FIELD *field);
20 The function \fBnew_field\fR allocates a new field and initializes it from the
21 parameters given: height, width, row of upper-left corner, column of upper-left
22 corner, number off-screen rows, and number of additional working buffers.
24 The function \fBdup_field\fR duplicates a field at a new location. Most
25 attributes (including current contents, size, validation type, buffer count,
26 growth threshold, justification, foreground, background, pad character,
27 options, and user pointer) are copied. Field status and the field page bit are
30 The function \fBlink_field\fR acts like \fBdup_field\fR, but the new field
31 shares buffers with its parent. Attribute data is separate.
33 The function \fBfree_field\fR de-allocates storage associated with a field.
35 The function, \fBnew_field\fR, \fBdup_field\fR, \fBlink_field\fR return
38 The function \fBfree_field\fR returns one of the following:
41 The routine succeeded.
44 System error occurred (see \fBerrno\fR).
47 Routine detected an incorrect or out-of-range argument.
49 \fBcurses\fR(3X), \fBform\fR(3X).
51 The header file \fB<form.h>\fR automatically includes the header file
54 These routines emulate the System V forms library. They were not supported on
55 Version 7 or BSD versions.
57 It may be unwise to count on the set of attributes copied by
58 \fBdup_field\fR(3X) being portable; the System V forms library documents are
59 not very explicit on what gets copied and was not.
61 Juergen Pfeifer. Manual pages and adaptation for new curses by Eric
64 .\"# The following sets edit modes for GNU EMACS