ConSetPageView command

 

Usage:

ConSetPageView Row&, Col&

 

Legacy Syntax:

CONSOLE SET VIEW Row&, Col&

 

Pseudo-object Syntax:

CON.VIEW = Row&, Col&

 

Sets the upper left position of the visible page in the console window.

 

If your program creates or inherits a screen buffer that is larger than the visible window, the visible window is initially positioned at the upper left corner (position 1,1) and scroll bars are automatically added to the console window to allow the user to examine the entire screen buffer. ConSetPageView allows the upper left corner of the window position (view port) to be changed programmatically, simulating use of the scroll bars.

 

If you specify a position which is outside the limits of the virtual screen, a location at the maximum limit in that direction will be selected. ConSetPageView affects only the visible console page, which may be different to the active page.

 

Conversion:

 

#IF %DEF(%PB_CC32)

  CONSOLE SET VIEW Row&, Col&

#ELSE

  ConSetPageView Row&, Col&

#ENDIF

 

CON.VIEW = or CONSOLE.VIEW = may be substituted for CONSOLE SET VIEW in programs written for PB/CC 6.

 

#IF %DEF(%PB_CC32)

  CON.VIEW = Row&, Col&

#ELSE

  ConSetPageView Row&, Col&

#ENDIF

 

See Also: ConGetPageView