Introduction
Features
Command Reference
Tutorials
Examples

Colour Schemes
Extras

Online
 Command
Slider( [X][,Y][,W][,H][,Value#][,Min#][,Max#][,Mode][,Dir$][,SRGB$][,ERGB$] )

 Parameters
X - Starting X location of the control
Y - Starting Y location of the control
W - Starting width of the control
H - Starting height of the control
Value# - Starting position of the slider
Min# - Value returned by the slider when at its lowest position
Max# - Value returned by the slider when at its highest position
Mode$ - Specifies if the slider returns integer or float values
Dir$ - Specifies the direction of the slider (Horizontal or Vertical)
SRGB$ - Specifies the start colour of the background
ERGB$ - Specifies the end colour of the background

 Description
Sliders are very similar to scrollbars... the main differences are that sliders don't have arrows at either end and the slider button width has to be the same as the height. Sliders can also have a coloured or a gradient background.

For more information see ScrollBars.

 Example
Graphics 640, 480, 16, 2
SetBuffer BackBuffer( )

Include "blitzui.bb"
Initialise( )

mywindow = Window( 20, 20, 210, 87, "My Window", 0, True )
myslider = Slider( 5, 5, 135, 10, 0, 0, 255, "Integer", "Horizontal", "0,0,0", "255,0,0" )
mylabel = Label( 145, 3, "Red: " + 0 )
myslider2 = Slider( 5, 25, 135, 10, 0, 0, 255, "Integer", "Horizontal", "0,0,0", "0,255,0" )
mylabel2 = Label( 145, 23, "Green: " + 0 )
myslider3 = Slider( 5, 45, 135, 10, 0, 0, 255, "Integer", "Horizontal", "0,0,0", "0,0,255" )
mylabel3 = Label( 145, 43, "Blue: " + 0 )

Repeat
    UpdateGUI( )
    DrawMouse( )

    sbarvalue = SendMessage( myslider, "SM_GETVALUE" )
    SendMessage( mylabel, "LM_SETTEXT", "Red: " + sbarvalue )
    sbarvalue2 = SendMessage( myslider2, "SM_GETVALUE" )
    SendMessage( mylabel2, "LM_SETTEXT", "Green: " + sbarvalue2 )
    sbarvalue3 = SendMessage( myslider3, "SM_GETVALUE" )
    SendMessage( mylabel3, "LM_SETTEXT", "Blue: " + sbarvalue3 )

    Flip
    Cls
Until KeyHit( 1 )
Destroy( )
End