Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FreshWin (c) Fresh Technologies - <b>sbend1() scroll bar function</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  SBEND1()                                               Scroll Bar Function
 Purpose..: Return the beginning of the scroll bar
-------------------------------------------------------------------------------
 Syntax...: sbEnd1( <aSBar> ) --> nStart

 Arguments: <aSBar>     = scroll bar structure returned via
                          a call to sbNew().

 Returns..: <N> nStart is the beginning position of the scroll bar. It
            will be the top row of a vertical scroll bar or the left
            column of a horizontal one.

 Source...: SCRLBAR.PRG
-------------------------------------------------------------------------------
 Example..: . The example prints out the top and bottom
              rows of a vertical scroll bar.

                aVertSB := sbNew( SB_VSCROLL )
                sbChrThumb( aVertSB, "." )
                sbChrBar  ( aVertSB, "#" )
                sbChrDec  ( aVertSB, "." )
                sbChrInc  ( aVertSB, "." )
                sbClrSpec ( aVertSB, "W+/B, B/*W, W+/B" )
                sbSetRange( aVertSB, 1, len( aArray ) - nScrLength + 1 )
                ...
                ? sbEnd1( aVertSB )
                ? sbEnd2( aVertSB )
                ...

See Also: sbNew() sbEnd2()

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