Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - scroll() scroll screen area up or down http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 scroll()            Scroll screen area up or down
------------------------------------------------------------------------------
 Declaration
   screen.hdr

 Syntax
   proc scroll extern
   param value logical lScrollUp, ;
         value int     iTop, ;
         value int     iLeft, ;
         value int     iBottom, ;
         value int     iRight, ;
         value int     iLines, ;
         value int     iAttribute

 Arguments
   lScrollUp indicates if the scroll direction is upwards.

   iTop is the top row of the screen area.

   iLeft is the leftmost column of the screen area.

   iBottom is the bottom row of the screen area.

   iRight is the rightmost column of the screen area.

   iLines is the number of lines to scroll.

   iAttribute is the color attribute to use for blank lines.

 Return
   None.

 Description
   This procedure scrolls the selected screen area iLines up or down,
   filling the emptied lines with the specified iAttribute.

 Example
   #define EXAMPLE_SCREEN
   #include example.hdr

   proc Test_scroll
   DrawScreen( '-' )
   @ 10, 10 to 15, 45
   getkey()
   scroll( SCROLL_DOWN, 10, 10, 15, 45, 6, RED_WHITE ) // scroll area down
   getkey()
   endproc

   proc main
   Test_scroll()
   endproc

See Also: scrlline() scrollfill()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson