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 - scrollfill() scroll screen area filling blank lines http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 scrollfill()        Scroll screen area filling blank lines
------------------------------------------------------------------------------
 Declaration
   screen.hdr

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

 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.

   iFillChar is a fill string.

 Return
   None.

 Description
   This procedure is similar to scroll(), but in addition,
   scrollfill() writes the specified fill character into the blank
   lines as they are added.

 Example
   #define EXAMPLE_SCREEN
   #include example.hdr

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

   proc main
   Test_scrollfill()
   endproc

See Also: scrlline() scroll()

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