# Mnemonics

'SCROLL' | Define/Control Scroll Region

GUI Display or Character Display or Editing

## Formats

1. | Define Region: | 'SCROLL'(col,ln,wth,ht)

Long or short forms:

2. | Start/Enable Scrolling: | 'SCROLL'("ON") or 'SE'
3. | Reset to Full Window: | 'SCROLL'("RESET") or 'SR'
4. | Disable Scrolling: | 'SCROLL'("OFF") or 'SD'

Where: |
col,ln,wth,ht | Position/coordinates. Numeric expressions. Column and line coordinates for top left corner, width in number of columns and height in number of lines.

## Description

Use 'SCROLL' to define or change the scroll region in the screen/window. All subsequent mnemonics for cursor position, clearing, deletion and insertion will only affect this defined area.

If the cursor advances beyond the last line:
• When'SCROLL' is ON, PxPlus moves all the lines on the screen up one line.
• When'SCROLL' is OFF, PxPlus returns the cursor to the first column in the first line.

The 'SE' and 'SD' mnemonics can also be used to enable or disable the scrolling.

Use 'SR' or 'SCROLL'("RESET") to reset the scroll region to the full window/screen. For a window with a border, the border is included in the scroll region.

#### Note:
The values ON, OFF and RESET can be literals, variables or string expressions.

## See Also

'SE' & 'SD' Scroll Enable/Disable