src/liflines/dynmenu.c
/*============================
 * dynmenu_init - initialize one dynamic menu
 * Safe to call on either empty or full DYNMENU
 * Created: 2002/10/24, Perry Rapp
 *==========================*/
initialize one dynamic menu
Safe to call on either empty or full DYNMENU
Created: 2002/10/24, Perry Rapp
initialize one dynamic menu Safe to call on either empty or full DYNMENU Created : 2002 / 10 / 24 Perry Rapp
void
dynmenu_init (DYNMENU dynmenu , STRING title, INT MenuRows, INT MenuCols
	, INT MinCols, INT MaxCols
	, INT MinRows, INT MaxRows
	, INT MenuTop, INT MenuLeft, INT MenuWidth
	, INT MenuSize, MenuItem ** MenuItems)
{
	dynmenu->rows = MenuRows;
	dynmenu->cols = MenuCols;
	dynmenu->size = MenuSize;
	dynmenu->page = 0;
	dynmenu->mincols = MinCols;
	dynmenu->maxcols = MaxCols;
	dynmenu->minrows = MinRows;
	dynmenu->maxrows = MaxRows;
	dynmenu->hidden = 0;
	dynmenu->dirty = 1;
	dynmenu->top = MenuTop;
	dynmenu->bottom = MenuTop + MenuRows-1;
	dynmenu->left = MenuLeft;
	dynmenu->width = MenuLeft + MenuWidth-1;
	menuset_init(&dynmenu->menuset, title, MenuItems, f_ExtraItems);
}
void dynmenu_init ( DYNMENU dynmenu , STRING title , INT MenuRows , INT MenuCols , INT MinCols , INT MaxCols , INT MinRows , INT MaxRows , INT MenuTop , INT MenuLeft , INT MenuWidth , INT MenuSize , MenuItem * * MenuItems ) { dynmenu -> rows = MenuRows ; dynmenu -> cols = MenuCols ; dynmenu -> size = MenuSize ; dynmenu -> page = 0 ; dynmenu -> mincols = MinCols ; dynmenu -> maxcols = MaxCols ; dynmenu -> minrows = MinRows ; dynmenu -> maxrows = MaxRows ; dynmenu -> hidden = 0 ; dynmenu -> dirty = 1 ; dynmenu -> top = MenuTop ; dynmenu -> bottom = MenuTop + MenuRows - 1 ; dynmenu -> left = MenuLeft ; dynmenu -> width = MenuLeft + MenuWidth - 1 ; menuset_init ( & dynmenu -> menuset , title , MenuItems , f_ExtraItems ) ; }
dynmenu_init - initialize one dynamic menu
 Safe to call on either empty or full DYNMENU
 Created: 2002/10/24, Perry Rapp
dynmenu_init - initialize one dynamic menu Safe to call on either empty or full DYNMENU Created : 2002 / 10 / 24 Perry Rapp
/* dynmenu->pages */ /* dynmenu->pageitems */