SCREEN PASTE_WINDOW

SCREEN PASTE_WINDOW places a window on the drawing board and makes the window visible on the terminal screen if the window is pasted in the range of the terminal screen.

SYNTAX

SCREEN PASTE_WINDOW /USING/ window_id start_row start_column

window_id

is an integer system field, Global Storage (GS) field, or user-defined field that contains the window ID assigned to the window.

start_row

is an integer expression that specifies the row of the terminal screen that is to contain row 1 of the window.

start_column

is an integer expression that specifies the column of the terminal screen that is to contain column 1 of the window.

EXAMPLE

SCREEN PASTE_WINDOW USING MAIN_ID 10 10

In this example, the window specified by MAIN_ID will be pasted on the drawing board at row 10 and column 10 and may appear directly on the screen.

Since the image is independent of the defined window, an image may or may not be in the window at this point.  If characters and text are put in the window before pasting it, the image is displayed when the window is pasted.

Lines of text may be read into the window and delete lines while it is pasted on the terminal screen.  The image can also change when part of the window is defined as a scroll region, or a message is erased and another message appears in its place.

When another window is pasted over the first window, whatever data that is inside the original window remains, and will reappear when the overlaid window is unpasted.

Back to Statements and Commands    Next page SCREEN PUT_BIG_CHARS