2 .\" Copyright 1989 AT&T
3 .\" Portions Copyright (c) 1996, Sun Microsystems, Inc. All Rights Reserved.
4 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
5 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
6 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
7 .TH FORM_FIELD_NEW 3CURSES "Dec 31, 1996"
9 form_field_new, new_field, dup_field, link_field, free_field \- create and
14 \fBcc\fR [ \fIflag\fR... ] \fIfile\fR... \fB-lform\fR \fB -lcurses \fR [ \fIlibrary\fR... ]
17 \fBFIELD *\fR\fBnew_field\fR(\fBint\fR \fIr\fR, \fBint\fR \fIc\fR, \fBint\fR \fIfrow\fR, \fBint\fR \fIfcol\fR, \fBint\fR \fInrow\fR, \fBint\fR \fIncol\fR);
22 \fBFIELD *\fR\fBdup_field\fR(\fBFIELD *\fR\fIfield\fR, \fBint\fR \fIfrow\fR, \fBint\fR \fIfcol\fR);
27 \fBFIELD *\fR\fBlink_field\fR(\fBFIELD *\fR\fIfield\fR, \fBint\fR \fIfrow\fR, \fBint\fR \fIfcol\fR);
32 \fBint\fR \fBfree_field\fR(\fBFIELD *\fR\fIfield\fR);
38 \fBnew_field()\fR creates a new field with \fIr\fR rows and \fIc\fR columns,
39 starting at \fIfrow\fR, \fIfcol\fR, in the subwindow of a form. \fInrow\fR is
40 the number of off-screen rows and \fInbuf\fR is the number of additional
41 working buffers. This routine returns a pointer to the new field.
44 \fBdup_field()\fR duplicates \fIfield\fR at the specified location. All field
45 attributes are duplicated, including the current contents of the field buffers.
48 \fBlink_field()\fR also duplicates \fIfield\fR at the specified location.
49 However, unlike \fBdup_field()\fR, the new field shares the field buffers with
50 the original field. After creation, the attributes of the new field can be
51 changed without affecting the original field.
54 \fBfree_field()\fR frees the storage allocated for \fIfield\fR.
58 Routines that return pointers return \fINULL\fR on error. \fBfree_field()\fR
59 returns one of the following:
66 Thefunction returned successfully.
75 The field is already connected to a form.
93 An argument is incorrect.
99 See \fBattributes\fR(5) for descriptions of the following attributes:
107 ATTRIBUTE TYPE ATTRIBUTE VALUE
115 \fBcurses\fR(3CURSES), \fBforms\fR(3CURSES), \fBattributes\fR(5)
119 The header \fB<form.h>\fR automatically includes the headers \fB<eti.h>\fR and