menu_win(3X)
NAME
menu_win, set_menu_win, set_menu_sub, menu_sub, scale_menu − menus window and subwindow association routines
SYNOPSIS
#include <menu.h>
int set_menu_win(MENU ∗menu, WINDOW ∗win);
WINDOW ∗menu_win(MENU ∗menu);
int set_menu_sub(MENU ∗menu, WINDOW ∗sub);
WINDOW ∗menu_sub(MENU ∗menu);
int scale_window(MENU ∗menu, int ∗rows, int ∗cols);
DESCRIPTION
set_menu_win() sets the window of menu to win. menu_win() returns a pointer to the window of menu.
set_menu_sub() sets the subwindow of menu to sub. menu_sub() returns a pointer to the subwindow of menu.
scale_window() returns the minimum window size necessary for the subwindow of menu. rows and cols are pointers to the locations used to return the values.
RETURN VALUES
Routines that return pointers always return NULL on error. Routines that return an integer return one of the following:
E_OKThe routine returned successfully.
E_SYSTEM_ERRORSystem error.
E_BAD_ARGUMENTAn incorrect argument was passed to
the routine.
E_POSTEDThe menu is already posted.
E_NOT_CONNECTEDNo items are connected to the menu.
NOTES
The header <menu.h> automatically includes the headers <eti.h> and <curses.h>.
SEE ALSO
SunOS 5.1/SPARC — Last change: 3 Jul 1990