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 - scrlline() scroll screen area one line up or down http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 scrlline()          Scroll screen area one line up or down
------------------------------------------------------------------------------
 Declaration
   screen.hdr

 Syntax
   proc scrlline extern
   param value int     iTop, ;
         value int     iLeft, ;
         value int     iBottom, ;
         value int     iRight, ;
         value logical lUpDown

 Arguments
   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.

   lUpDown indicates if the scroll direction is upwards.

 Return
   None.

 Description
   This procedure scrolls the specified screen area up or down by one line.
   The value of __syscolor[ CLR_STD ] is used as the attribute for the
   blank line.

 Example
   #define EXAMPLE_SCREEN
   #include example.hdr

   proc Test_scrlline
   vardef
      uint n
   enddef
   DrawScreen( '-' )
   @ 10, 10 to 15, 45
   getkey()
   for n := 0 to 5
      scrlline( 10, 10, 15 - n, 45, SCROLL_UP ) // scroll area up by one line
      delay( 1 )
   next
   getkey()
   endproc

   proc main
   Test_scrlline()
   endproc

See Also: scroll() scrollfill()

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