Intel® Fortran Libraries Reference

Intel® Fortran Libraries Reference Intel® Fortran Libraries Reference

h.eng.cam.ac.uk
from h.eng.cam.ac.uk More from this publisher
12.07.2015 Views

2 Intel Fortran Libraries ReferenceSETTEXTPOSITIONGraphics Subroutine: Sets the current text position to a specified position relative to the currenttext window. This subroutine is only available on Windows* systems.Module: USE IFQWINSyntaxCALL SETTEXTPOSITION (row, column, t)row(Input) INTEGER(2). New text row position.column(Input) INTEGER(2). New text column position.t(Output) Derived type rccoord. Previous text position. The derived type rccoord is defined inIFQWIN.F90 as follows:TYPE rccoordINTEGER(2) row ! Row coordinateINTEGER(2) col ! Column coordinateEND TYPE rccoordSubsequent text output with the OUTTEXT function (as well as standard console I/O statements,such as PRINT and WRITE) begins at the point (row, column).CompatibilitySTANDARD GRAPHICS QUICKWIN GRAPHICS LIBSee Also: “CLEARSCREEN”, “GETTEXTPOSITION”, “OUTTEXT”,“SCROLLTEXTWINDOW”, “SETTEXTWINDOW”, “WRAPON”ExampleUSE IFQWINTYPE (rccoord) curposWRITE(*,*) "Original text position"CALL SETTEXTPOSITION (INT2(6), INT2(5), curpos)WRITE (*,*) 'New text position'END2-426

Descriptions of the Library Routines 2SETTEXTWINDOWGraphics Subroutine: Sets the current text window. This subroutine is only available onWindows* systems.Module: USE IFQWINSyntaxCALL SETTEXTWINDOW (r1, c1, r2, c2)r1, c1(Input) INTEGER(2). Row and column coordinates for upper-left corner of the text window.r2, c2(Input) INTEGER(2). Row and column coordinates for lower-right corner of the text window.SETTEXTWINDOW specifies a window in row and column coordinates where text output to thescreen using OUTTEXT, WRITE, or PRINT will be displayed. You set the text location withinthis window with SETTEXTPOSITION.Text is output from the top of the window down. When the window is full, successive linesoverwrite the last line.SETTEXTWINDOW does not affect the output of the graphics text routine OUTGTEXT. Use theSETVIEWPORT function to control the display area for graphics output.CompatibilitySTANDARD GRAPHICS QUICKWIN GRAPHICS LIBSee Also: “GETTEXTPOSITION”, “GETTEXTWINDOW”, “GRSTATUS”, “OUTTEXT”,“SCROLLTEXTWINDOW”, “SETTEXTPOSITION”, “SETVIEWPORT”, “WRAPON”ExampleUSE IFQWINTYPE (rccoord) curposCALL 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"END2-427

2 Intel <strong>Fortran</strong> <strong>Libraries</strong> <strong>Reference</strong>SETTEXTPOSITIONGraphics Subroutine: Sets the current text position to a specified position relative to the currenttext window. This subroutine is only available on Windows* systems.Module: USE IFQWINSyntaxCALL SETTEXTPOSITION (row, column, t)row(Input) INTEGER(2). New text row position.column(Input) INTEGER(2). New text column position.t(Output) Derived type rccoord. Previous text position. The derived type rccoord is defined inIFQWIN.F90 as follows:TYPE rccoordINTEGER(2) row ! Row coordinateINTEGER(2) col ! Column coordinateEND TYPE rccoordSubsequent text output with the OUTTEXT function (as well as standard console I/O statements,such as PRINT and WRITE) begins at the point (row, column).CompatibilitySTANDARD GRAPHICS QUICKWIN GRAPHICS LIBSee Also: “CLEARSCREEN”, “GETTEXTPOSITION”, “OUTTEXT”,“SCROLLTEXTWINDOW”, “SETTEXTWINDOW”, “WRAPON”ExampleUSE IFQWINTYPE (rccoord) curposWRITE(*,*) "Original text position"CALL SETTEXTPOSITION (INT2(6), INT2(5), curpos)WRITE (*,*) 'New text position'END2-426

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!