4 \fBform_win\fR - make and break form window and subwindow associations
6 \fB#include <form.h>\fR
8 int set_form_win(FORM *form, WINDOW *win);
10 WINDOW *form_win(const FORM *form);
12 int set_form_sub(FORM *form, WINDOW *sub);
14 WINDOW *form_sub(const FORM *form);
16 int scale_form(const FORM *form, int *rows, int *columns);
19 Every form has an associated pair of \fBcurses\fR windows. The form window
20 displays any title and border associated with the window; the form subwindow
21 displays the items of the form that are currently available for selection.
23 The first four functions get and set those windows. It is not necessary to set
24 either window; by default, the driver code uses \fBstdscr\fR for both.
26 In the \fBset_\fR functions, window argument of \fBNULL\fR is treated as though
27 it were \fBstsdcr\fR. A form argument of \fBNULL\fR is treated as a request
28 to change the system default form window or subwindow.
30 The function \fBscale_window\fR returns the minimum size required for the
31 subwindow of \fIform\fR.
33 Routines that return pointers return \fBNULL\fR on error. Routines that return
34 an integer return one of the following error codes:
37 The routine succeeded.
40 System error occurred (see \fBerrno\fR).
43 Routine detected an incorrect or out-of-range argument.
46 The form has already been posted.
49 No items are connected to the form.
51 \fBcurses\fR(3X), \fBform\fR(3X).
53 The header file \fB<form.h>\fR automatically includes the header file
56 These routines emulate the System V forms library. They were not supported on
57 Version 7 or BSD versions.
59 Juergen Pfeifer. Manual pages and adaptation for new curses by Eric
62 .\"# The following sets edit modes for GNU EMACS