SCROLL Mnemonic - Set Scrolling Attributes

Syntax

'SCROLL'(col,row,cols,rows)
'SCROLL'("OFF")
'SCROLL'("ON")
'SCROLL'("RESET")

Description

The 'SCROLL' mnemonic defines a scrolling region within the current window starting at col,row containing cols in width and extending rows down. This region must be fully contained within the current window. Otherwise, an !ERROR=1 is generated. Within this region, the upper left corner is considered 0,0 (home) and all cursor addressing, with the exception of the 'WINDOW' and 'MOVE' mnemonics, will be relative to this.

Parameter

Description

col

Defines the scrolling region beginning at col.

row

Defines the scrolling region beginning at row.

cols

Number of columns wide.

rows

Number of rows down.

"ON"

Enables scrolling in the current window.

"OFF"

Disables scrolling in the current window. The cursor wraps back to the first line in the current scrolling region (or window, if no scrolling region is set) following an advance from the last line.

"RESET"

Resets the scrolling region to the maximum possible in the current window. If a window with borders is active, the new scrolling region will include the window borders.

See Also

Mnemonics - Alphabetical Listing

Mnemonics - Group Listing



______________________________________________________________________________________

Copyright BASIS International Ltd. BBj®, Visual PRO/5®, PRO/5®, and BBx® are registered trademarks.