NAME
mmeennuussppaacciinngg - Control spacing between menu items.
SYNOPSIS
##iinncclluuddee <
int setmenuspacing(MENU *menu, int spcdescription, int spcrows, int spccolumns); int menuspacing(const MENU *menu, int* spcdescription, int* spcrows, int* spccolumns);> DESCRIPTION
The function sseettmmeennuussppaacciinngg sets the spacing informations for the menu. ssppccddeessccrriippttiioonn controls the number of spaces between an item name and an item description. It must not be larger than TTAABBSSIIZZEE. The menu system puts in the middle of this spacing area the pad character.The remaining parts are filled with spaces. ssppccrroowwss controls the num-
ber of rows that are used for an item. It must not be larger than 3. The menu system inserts the blank lines between item rows, these lineswill contain the pad character in the appropriate positions. ssppccccooll-
uummnnss controls the number of blanks between columns of items. It must not be larger than TABSIZE. A value of 0 for all the spacing values resets them to the default, which is 1 for all of them. The function mmeennuussppaacciinngg passes back the spacing info for the menu. If a pointer is NULL, this specific info is simply not returned. RREETTUURRNN VVAALLUUEE Both routines return EEOOKK on success. sseettmmeennuussppaacciinngg may return EEPPOOSSTTEEDD if the menu is posted, or EEBBAADDAARRGGUUMMEENNTT if one of the spacing values is out of range.SEE ALSO
ccuurrsseess(3X), mmeennuu(3X). NNOOTTEESS The header file <> automatically includes the header file < >. PPOORRTTAABBIILLIITTYY These routines are specific to ncurses. They were not supported on Version 7, BSD or System V implementations. It is recommended that any code depending on them be conditioned using NCURSESVERSION. AUTHORS Juergen Pfeifer. Manual pages and adaptation for new curses by Eric S. Raymond. menuspacing(3X)