Partager via


SCROLL Command

Scrolls an area of the main Visual FoxPro window or a user-defined window up, down, left, or right.

SCROLL nRow1, nColumn1, nRow2, nColumn2, nRowsScrolled
    [, nColumnsScrolled]

Parameters

  • nRow1, nColumn1, nRow2, nColumn2
    Specifies the rectangular region where scrolling occurs in the main Visual FoxPro window or in the active user-defined window. nRow1, nColumn1 specifies the upper-left corner of the region, and nRow2, nColumn2 specifies the lower-right corner.
  • nRowsScrolled
    Specifies the number of rows up or down to scroll inside the rectangular region. If the numeric expression nRowsScrolled is positive, Visual FoxPro scrolls up the number of rows. If nRowsScrolled is negative, Visual FoxPro scrolls down the number of rows. If nRowsScrolled is 0 and you omit nColumnsScrolled, Visual FoxPro clears the rectangular region.
  • nColumnsScrolled
    Specifies the number of columns left or right to scroll inside the rectangular region. If the numeric expression nColumnsScrolled is positive, Visual FoxPro scrolls to the right the number of columns. If nColumnsScrolled is negative, Visual FoxPro scrolls to the left the number of columns. If you include both nRowsScrolled and nColumnsScrolled, Visual FoxPro scrolls the area diagonally.

Example

The following command scrolls a small rectangular region:

CLEAR
@ 4, 1 FILL TO 10, 8 COLOR GR+/B
WAIT WINDOW 'Press key to scroll left top corner'
SCROLL 0, 0, 5, 5, -2, 1

See Also

MOVE WINDOW | ScrollBars Property | @ ... SCROLL Command