Syntax
void Scroll( int top, int left, int bottom, int right, int rows, int cols );
Arguments
top, left, bottom, right Inclusive, zero-based bounds. Use NIL for any edge to select the corresponding screen boundary.
rows Positive moves content up, negative moves it down.
cols Positive moves content left, negative moves it right. For either offset, NIL means zero.
Return value
No return value.
Description
Move existing cells within the rectangle. Positive row and column offsets move content up and left, respectively. Negative offsets move it down and right. Newly uncovered cells are filled with spaces in the current color. With both offsets zero, the entire rectangle is cleared.
Example
#include "xdev-wtui.h"
int main( void )
{
SetPos( 2, 2 );
DispOut( "This line will move up.", NULL );
Inkey( 0, NIL );
Scroll( 1, 1, 5, 30, 1, 0 );
Inkey( 0, NIL );
return 0;
}