formpage(3X) formpage(3X)
NAME
formpage - set and get form page number
SYNOPSIS
##include <>
int setcurrentfield(FORM *form, FIELD *field);
FIELD *currentfield(const FORM *);
int setformpage(FORM *form, int n);
int formpage(const FORM *form);
int fieldindex(const FIELD *field);
DESCRIPTION
The function setcurrent field sets the current field of the given
form; currentfield returns the current field of the given form.
The function setformpage sets the form's page number (goes to page n
of the form).
The function formpage returns the form's current page number.
The function fieldindex returns the index of the field in the field
array of the form it is connected to. It returns ER if the argument is
the null pointer or the field is not connected.
RETURN VALUE
Except for formpage, each routine returns one of the following:
EOK The routine succeeded.
ESYSTEMEROR
System error occurred (see errno).
EBADARGUMENT
Routine detected an incorrect or out-of-range argument.
EBADSTATE
Routine was called from an initialization or termination function.
EINVALIDFIELD
Contents of a field are not valid.
EREQUESTDENIED
The form driver could not process the request.
SEE ALSO
curses(3X), form(3X).
NOTES
The header file <> automatically includes the header file
<>.
PORTABILITY
These routines emulate the System V forms library. They were not sup-
ported on Version 7 or BSD versions.
AUTHORS
Juergen Pfeifer. Manual pages and adaptation for new curses by Eric S.
Raymond.
formpage(3X)
|