]> ncurses.scripts.mit.edu Git - ncurses.git/blob - Ada95/html/form_field_info.3x.html
ncurses 4.1
[ncurses.git] / Ada95 / html / form_field_info.3x.html
1 <HTML>
2 <BODY BGCOLOR="#99ccbb" TEXT="#000000" LINK="#4060b0" VLINK="#000080" ALINK="#ff4040">
3 <PRE>
4        <STRONG>form_field_info</STRONG> - retrieve field characteristics
5
6
7 </PRE>
8 <H2>SYNOPSIS</H2><PRE>
9        <STRONG>#include</STRONG> <STRONG>&lt;form.h&gt;</STRONG>
10        int field_info(const FIELD *field, int *rows, int *cols,
11                      int *frow, int *fcol, int *nrow, int *nbuf);
12        int dynamic_field_info(const FIELD *field, int *rows,  int
13        *cols, *max);
14
15
16 </PRE>
17 <H2>DESCRIPTION</H2><PRE>
18        The  function  <STRONG>field_info</STRONG>  returns  the  sizes  and  other
19        attributes passed in to the field at  its  creation  time.
20        The  attributes are: height, width, row of upper-left cor-
21        ner, column of upper-left corner, number off-screen  rows,
22        and number of working buffers.
23
24        The function <STRONG>dynamic_field_info</STRONG> returns the actual size of
25        the field, and its maximum possible size.   If  the  field
26        has  no  size  limit,  the location addressed by the third
27        argument will be set to 0.  (A field can be  made  dynamic
28        by turning off the <STRONG>O_STATIC</STRONG>).
29
30
31 </PRE>
32 <H2>RETURN VALUE</H2><PRE>
33        These routines return one of the following:
34
35        <STRONG>E_OK</STRONG> The routine succeeded.
36
37        <STRONG>E_SYSTEM_ERROR</STRONG>
38             System error occurred (see <STRONG>errno</STRONG>).
39
40        <STRONG>E_BAD_ARGUMENT</STRONG>
41             Routine  detected  an incorrect or out-of-range argu-
42             ment.
43
44
45 </PRE>
46 <H2>SEE ALSO</H2><PRE>
47        <STRONG><A HREF="ncurses.3x.html">curses(3X)</A></STRONG> and 3X pages  whose  names  begin  "form_"  for
48        detailed descriptions of the entry points.
49
50
51 </PRE>
52 <H2>NOTES</H2><PRE>
53        The header file <STRONG>&lt;form.h&gt;</STRONG> automatically includes the header
54        file <STRONG>&lt;curses.h&gt;</STRONG>.
55
56
57 </PRE>
58 <H2>PORTABILITY</H2><PRE>
59        These routines emulate the System V forms  library.   They
60        were not supported on Version 7 or BSD versions.
61
62
63 </PRE>
64 <H2>AUTHORS</H2><PRE>
65        Juergen  Pfeifer.   Manual  pages  and  adaptation for new
66        curses by Eric S. Raymond.
67
68
69
70 </PRE>
71 </BODY>
72 </HTML>