Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ set_menu_pad(3X) — DG/UX 5.4R3.00

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

curses(3X)

menus(3X)



menu_attributes(3X)            DG/UX 5.4R3.00            menu_attributes(3X)


NAME
       menuattributes:  setmenufore, menufore, setmenuback, menuback,
       setmenugrey, menugrey, setmenupad, menupad - control menus
       display attributes

SYNOPSIS
       #include <menu.h>
       int setmenufore(MENU *menu, chtype attr);
       chtype menufore(MENU *menu);
       int setmenuback(MENU *menu, chtype attr);
       chtype menuback(MENU *menu);
       int setmenugrey(MENU *menu, chtype attr);
       chtype menugrey(MENU *menu);
       int setmenupad(MENU *menu, int pad);
       int menupad(MENU *menu);

DESCRIPTION
       setmenufore sets the foreground attribute of menu -- the display
       attribute for the current item (if selectable) on single-valued menus
       and for selected items on multi-valued menus.  This display attribute
       is a curses library visual attribute.  menufore returns the
       foreground attribute of menu.

       setmenuback sets the background attribute of menu -- the display
       attribute for unselected, yet selectable, items.  This display
       attribute is a curses library visual attribute.

       setmenugrey sets the grey attribute of menu -- the display
       attribute for nonselectable items in multi-valued menus.  This
       display attribute is a curses library visual attribute.  menugrey
       returns the grey attribute of menu.

       The pad character is the character that fills the space between the
       name and description of an item.  setmenupad sets the pad character
       for menu to pad.  menupad returns the pad character of menu.

RETURN VALUE
       These routines return one of the following:

       EOK        - The routine returned successfully.
       ESYSTEMERROR-System error.
       EBADARGUMENT-An incorrect argument was passed to the routine.

NOTES
       The header file <menu.h> automatically includes the header files
       <eti.h> and <curses.h>.

SEE ALSO
       curses(3X), menus(3X).








Licensed material--property of copyright holder(s)                         1


Typewritten Software • bear@typewritten.org • Edmonds, WA 98026