Next: , Previous: Menu pattern buffer, Up: Menu options   [Contents][Index] Writing or erasing menus from window

Procedure: post-menu menu
Procedure: unpost-menu menu

The procedure post-menu displays a menu to its associated subwindow. To trigger physical display of the subwindow, use refresh or some equivalent curses routine (the implicit doupdate triggered by an curses input request will do). post-menu resets the selection status of all items.

The procedure unpost-menu erases menu from its associated subwindow.

These routines return one of the following: E_OK, E_SYSTEM_ERROR, E_BAD_ARGUMENT, E_POSTED if the menu has already been posted, E_BAD_STATE if the routine was called from an initialization or termination function, E_NO_ROOM if the menu is too large for its window, or E_NOT_POSTED if the menu has not been posted.