Curses Library Functions formfield(3CURSES)
NAME
formfield, setformfields, formfields, fieldcount,
movefield - connect fields to forms
SYNOPSIS
cc [ flag... ] file... -lform -lcurses [ library... ]
#include
int setformfields(FORM *form, FIELD **field);
FIELD **formfields(FORM *form);
int fieldcount(FORM *form);
int movefield(FIELD *field, int frow, int fcol);
DESCRIPTION
setformfields() changes the fields connected to form to
fields. The original fields are disconnected.
formfields() returns a pointer to the field pointer array
connected to form.
fieldcount() returns the number of fields connected to
form.
movefield() moves the disconnected field to the location
frow, fcol in the forms subwindow.
RETURN VALUES
formfields() returns NUL on error.
fieldcount() returns -1 on error.
setformfields() and movefield() return one of the follow-
ing:
EOK The function returned successfully.
ECONECTED The field is already connected to a form.
SunOS 5.11 Last change: 31 Dec 1996 1
Curses Library Functions formfield(3CURSES)
ESYSTEMEROR System error.
EBADARGUMENT An argument is incorrect
EPOSTED The form is posted.
ATRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
ATRIBUTE TYPE ATRIBUTE VALUE
MT-Level Unsafe
SEE ALSO
curses(3CURSES), forms(3CURSES), attributes(5)
NOTES
The header automatically includes the headers
and .
SunOS 5.11 Last change: 31 Dec 1996 2
|