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>sbclrspec() scroll bar function</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  SBCLRSPEC()                                            Scroll Bar Function
 Purpose..: Change the scroll bar color specification
-------------------------------------------------------------------------------
 Syntax...: sbClrSpec( <aSBar>[, <cClr>] ) --> cOldClrSpec

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

            [<cClr>]    = scroll bar color specification in a comma-
                          delimited string. If not sent, no change will
                          be made. The first color pair will be the scroll
                          bar color, then the bar controls and the last is
                          for the thumb color.

 Returns..: <C> cOldClrSpec is the previous color specification.

 Source...: SCRLBAR.PRG
-------------------------------------------------------------------------------
 Example..: . The example creates a new horizontal
              scroll bar structure, changes the thumb character,
              the bar fill character, the decrement control character,
              the increment control character and the color specification.

                aHorizSB := sbNew( SB_HSCROLL )
                sbChrThumb( aHorizSB, "." )
                sbChrBar  ( aHorizSB, "#" )
                sbChrDec  ( aHorizSB, "." )
                sbChrInc  ( aHorizSB, "." )
                sbClrSpec ( aHorizSB, "W+/B, B/*W, W+/B" )

See Also: sbNew()

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