MENU_MARK(3) | Library Functions Manual | MENU_MARK(3) |
menu_mark
, menu_unmark
,
set_menu_mark
, set_menu_unmark
—
#include <menu.h>
char *
menu_mark
(MENU
*menu);
char *
menu_unmark
(MENU
*menu);
int
set_menu_mark
(MENU
*menu, char
*mark);
int
set_menu_unmark
(MENU
*menu, char
*mark);
menu_mark
() function returns a pointer to the
character string that is used to mark selected items in the menu. The mark
string is set by the set_menu_mark
() function. The
menu_unmark
() function returns a pointer to the
character string that is used to indicate a menu items is not selected, this
string is set by the set_menu_unmark
() function. The
mark and unmark strings may be of differing lengths, the room allocated to
drawing the mark will be the maximum of the lengths of both the mark and
unmark strings. The shorter of the two strings will be left justified and
space padded.
E_OK
E_SYSTEM_ERROR
E_BAD_ARGUMENT
E_POSTED
E_CONNECTED
E_BAD_STATE
E_NO_ROOM
E_NOT_POSTED
E_UNKNOWN_COMMAND
E_NO_MATCH
E_NOT_SELECTABLE
E_NOT_CONNECTED
E_REQUEST_DENIED
September 10, 1999 | NetBSD 9.0 |