4 <!-- Manpage converted by man2html 3.0.1 -->
8 <B>menu_spacing</B> - Control spacing between menu items.
12 <H2>SYNOPSIS</H2><PRE>
13 <B>#include</B> <B><menu.h></B>
14 int set_menu_spacing(MENU *menu,
18 int menu_spacing(const MENU *menu,
25 <H2>DESCRIPTION</H2><PRE>
26 The function <B>set_menu_spacing</B> sets the spacing informa-
27 tions for the menu. <B>spc_description</B> controls the number
28 of spaces between an item name and an item description. It
29 must not be larger than <B>TABSIZE</B>. The menu system puts in
30 the middle of this spacing area the pad character. The
31 remaining parts are filled with spaces. <B>spc_rows</B> controls
32 the number of rows that are used for an item. It must not
33 be larger than 3. The menu system inserts then blank lines
34 between item rows, these lines will contain the pad char-
35 acter in the appropriate positions. <B>spc_columns</B> controls
36 the number of blanks between columns of items. It must not
37 be larger than TABSIZE. A value of 0 for all the spacing
38 values resets them to the default, which is 1 for all of
40 The function <B>menu_spacing</B> passes back the spacing info for
41 the menu. If a pointer is NULL, this specific info is sim-
46 <H2>RETURN VALUE</H2><PRE>
47 Both routines return <B>E_OK</B> on success. <B>set_menu_spacing</B> may
48 return <B>E_POSTED</B> if the menu is posted, or <B>E_BAD_ARGUMENT</B>
49 if one of the spacing values is out of range.
53 <H2>SEE ALSO</H2><PRE>
54 <B><A HREF="ncurses.3x.html">curses(3x)</A></B>, <B><A HREF="menu.3x.html">menu(3x)</A></B>.
59 The header file <B><menu.h></B> automatically includes the header
60 file <B><curses.h></B>.
64 <H2>PORTABILITY</H2><PRE>
65 These routines are specific to ncurses. They were not
66 supported on Version 7, BSD or System V implementations.
67 It is recommended that any code depending on them be con-
68 ditioned using NCURSES_VERSION.
73 Juergen Pfeifer. Manual pages and adaptation for new
74 curses by Eric S. Raymond.
78 Man(1) output converted with
79 <a href="http://www.oac.uci.edu/indiv/ehood/man2html.html">man2html</a>