
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FreshWin (c) Fresh Technologies - <b>sbplane() scroll bar function</b>
[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
SBPLANE() Scroll Bar Function
Purpose..: Return the X or Y axis of the scroll bar
-------------------------------------------------------------------------------
Syntax...: sbPlane( <aSBar> ) --> nXorYAxis
Arguments: <aSBar> = scroll bar structure returned via
a call to sbNew().
Returns..: <N> nXorYAxis is the Y axis for a vertical scroll bar OR
the X axis for a horizontal one. In other words, it is the
plane on which the scroll bar lies.
Source...: SCRLBAR.PRG
-------------------------------------------------------------------------------
Example..: . The example prints out the axis on which
the scroll bar lies.
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 )
...
? sbPlane( aVertSB )
...
See Also: sbNew() sbWhere()
Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson