MAP
Associates a buffer with a window and makes the window visible on the
screen. Before using MAP you must already have created the buffer and
the window. (See help on CREATE_BUFFER and CREATE_WINDOW.)
Syntax
MAP (window, buffer)
Parameters
window A window that you want to map to the screen.
buffer A buffer you want to associate with the window.
Examples
1. MAP (main_window, main_buffer);
Associates the main buffer with the main window, and maps the main
window to the screen.
2. The following procedure creates a message buffer and a message
window; it then associates the message buffer with the message
window and maps the message window to the screen:
PROCEDURE user_message_window
! Create a message buffer and a message window
message_buffer := CREATE_BUFFER ("message");
message_window := CREATE_WINDOW (23, 2, OFF);
! Set the attributes of the buffer and window
SET (EOB_TEXT, message_buffer, "");
SET (NO_WRITE, message_buffer);
SET (SYSTEM, message_buffer);
SET (VIDEO, message_window, NONE);
MAP (message_window, message_buffer);
ENDPROCEDURE;
Related topics
CREATE_BUFFER CREATE_WINDOW UNMAP