SCREEN DRAW_LINE draws a line from a specified starting row and column to a specified ending row and column. Only horizontal and vertical lines can be drawn. The characters used to draw the line depend on the type of terminal. The cursor position does not change.
SCREEN DRAW_LINE /USING/ window_id, start_row, start_column, end_row, end_column, rendition
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 at which to begin drawing the line. |
start_column |
is an integer expression that specifies the column at which to begin drawing the line. |
end_row |
is an integer expression that specifies the row at which the drawn line ends. |
end_column |
is an integer expression that specifies the column at which the drawn line ends. |
rendition |
specifies the video attributes of the drawn line. More than one attribute may be defined by separating the attributes with plus signs. |
|
The valid video attributes are:
|
SCREEN DRAW_LINE USING MAIN_ID 10 1 10 40 NORMAL
This example demonstrates how to separate two areas of a window with a horizontal line. A line 40 columns long is drawn on row 10.