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>sbdisplay() scroll bar function</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  SBDISPLAY()                                            Scroll Bar Function
 Purpose..: Display the scroll bar on the screen
-------------------------------------------------------------------------------
 Syntax...: sbDisplay( <aSBar>, <nR>, <nC>, <nLen> ) --> NIL

 Arguments: <aSBar>     = scroll bar structure returned via
                          a call to sbNew(). It is the scroll bar
                          to display on the screen.

            <nR>        = row where to display scroll bar.

            <nC>        = column where to display scroll bar.

            <nLen>      = scroll bar length or width depending upon
                          whether the scroll bar is to be vertical or
                          horizontal.

 Returns..: NIL

 Source...: SCRLBAR.PRG
-------------------------------------------------------------------------------
 Example..: . The example creates a new horizontal
              scroll bar structure, sets the range, draws it and
              then sets its initial position.

              aVertSB := wNew( SB_VSCROLL )
              sbSetRange( aVertSB, 1, lastrec() )
              sbDisplay ( aVertSB, 1, 78, 23 )
              sbSetPos  ( aVertSB, 1 )

See Also: sbNew() sbSetPos() sbSetRange()

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