*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->FreeBSD man pages -> set_menu_format (3)              



NAME    [Toc]    [Back]

       menu_format - set and get menu sizes

SYNOPSIS    [Toc]    [Back]

       #include <menu.h>
       int set_menu_format(MENU *menu, int rows, int cols);
       void menu_format(const MENU *menu, int *rows, int *cols);

DESCRIPTION    [Toc]    [Back]

       The function set_menu_format sets the maximum display size of the given
       menu.  If this size is too small to display all menu  items,  the  menu
       will  be made scrollable. If this size is larger than the menus subwindow
 and	the  subwindow	is  too  small	to  display  all  menu	items,
       post_menu() will fail.

       The  default format is 16 rows, 1 column.  Calling set_menu_format with
       a null menu pointer will change this default.  A  zero  row  or	column
       argument  to  set_menu_format is interpreted as a request not to change
       the current value.

       The function menu_format returns the maximum-size constraints  for  the
       given menu into the storage addressed by rows and cols.

RETURN VALUE    [Toc]    [Back]

       These routines returns one of the following:

       E_OK The routine succeeded.

       E_SYSTEM_ERROR    [Toc]    [Back]
	    System error occurred (see errno).

       E_BAD_ARGUMENT    [Toc]    [Back]
	    Routine detected an incorrect or out-of-range argument.

       E_POSTED    [Toc]    [Back]
	    The menu is already posted.

SEE ALSO    [Toc]    [Back]

       curses(3X), menu(3X).

NOTES    [Toc]    [Back]

       The  header  file  <menu.h>  automatically  includes  the  header  file

PORTABILITY    [Toc]    [Back]

       These routines emulate the System V menu library.  They were  not  supported
 on Version 7 or BSD versions.

AUTHORS    [Toc]    [Back]

       Juergen Pfeifer.  Manual pages and adaptation for new curses by Eric S.

[ Back ]
 Similar pages
Name OS Title
VkOptionMenu IRIX An option menu for use with ViewKit menu items
textport IRIX positions and sizes the textport
QueryKeySizeInBits Tru64 Get CSP logical and effective sizes (CDSA)
cksum HP-UX print file checksum and sizes
newsyslog.conf OpenBSD trim log files to manageable sizes
newsyslog OpenBSD trim log files to manageable sizes
CSSM_QueryKeySizeInBits Tru64 Get CSP logical and effective sizes (CDSA)
CSP_QueryKeySizeInBits Tru64 Get CSP logical and effective sizes (CDSA)
size HP-UX print section sizes of object files
size IRIX print the section sizes of object files
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service