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_PAGE 3CURSES "Dec 31, 1996"
9 form_page, set_form_page, set_current_field, current_field, field_index \- set
10 forms current page and field
14 \fBcc\fR [ \fIflag\fR... ] \fIfile\fR... \fB-lform\fR \fB -lcurses \fR [ \fIlibrary\fR... ]
17 \fBint\fR \fBset_form_page\fR(\fBFORM *\fR\fIform\fR, \fBint\fR \fIpage\fR);
22 \fBint\fR \fBform_page\fR(\fBFORM *\fR\fIform\fR);
27 \fBint\fR \fBset_current_field\fR(\fBFORM *\fR\fIform\fR, \fBFIELD *\fR\fIfield\fR);
32 \fBFIELD *\fR\fBcurrent_field\fR(\fBFORM*\fR\fIform\fR);
37 \fBint\fR \fBfield_index\fR(\fBFIELD *\fR\fIfield\fR);
43 \fBset_form_page()\fR sets the page number of \fIform\fR to \fBpage\fR.
44 \fBform_page()\fR returns the current page number of \fIform\fR.
47 \fBset_current_field()\fR sets the current field of \fIform\fR to \fIfield\fR.
48 \fBcurrent_field()\fR returns a pointer to the current field of \fIform\fR.
51 \fBfield_index()\fR returns the index in the field pointer array of
56 \fBform_page()\fR returns \fB-1\fR on error.
59 \fBcurrent_field()\fR returns \fINULL\fR on error.
62 \fBfield_index()\fR returns \fB-1\fR on error.
65 \fBset_form_page()\fR and \fBset_current_field()\fR return one of the
73 The function returned successfully.
91 An argument is incorrect.
100 The routine was called from an initialization or termination function.
106 \fBE_INVALID_FIELD\fR
109 The field contents are invalid.
115 \fBE_REQUEST_DENIED\fR
118 The form driver request failed
124 See \fBattributes\fR(5) for descriptions of the following attributes:
132 ATTRIBUTE TYPE ATTRIBUTE VALUE
140 \fBcurses\fR(3CURSES), \fBforms\fR(3CURSES), \fBattributes\fR(5)
144 The header \fB<form.h>\fR automatically includes the headers \fB<eti.h>\fR and