Graphics Subroutine: Sets the current text window.
Module: USE DFLIB
Syntax
SETTEXTWINDOW specifies a window in row and column coordinates where text output to the screen using OUTTEXT, WRITE, or PRINT will be displayed. You set the text location within this window with SETTEXTPOSITION.
Text is output from the top of the window down. When the window is full, successive lines overwrite the last line.
SETTEXTWINDOW does not affect the output of the graphics text routine OUTGTEXT. Use the SETVIEWPORT function to control the display area for graphics output.
Compatibility
STANDARD GRAPHICS QUICKWIN GRAPHICS LIB
See Also: GETTEXTPOSITION, GETTEXTWINDOW, GRSTATUS, OUTTEXT, SCROLLTEXTWINDOW, SETTEXTPOSITION, SETVIEWPORT, WRAPON
Example
USE DFLIB
TYPE (rccoord) curpos
CALL SETTEXTWINDOW(INT2(5), INT2(1), INT2(7), &
INT2(40))
CALL SETTEXTPOSITION (INT2(5), INT2(5), curpos)
WRITE(*,*) "Only two lines in this text window"
WRITE(*,*) "so this line will be overwritten"
WRITE(*,*) "by this line"
END