Introduction
Features
Command Reference
Tutorials
Examples

Colour Schemes
Extras

Online
 Command
ScrollBar( [X][,Y][,W][,H][,SW][,Value#][,Min#][,Max#][,Mode][,Dir$] )

 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
SW - Starting width of the scrollbar
Value# - Starting position of the scrollbar
Min# - Value returned by the scrollbar when at its lowest position
Max# - Value returned by the scrollbar when at its highest position
Mode$ - Specifies if the scrollbar return integer or float values
Dir$ - Specifies the direction of the scrollbar (Horizontal or Vertical)

 Description
ScrollBars are what you see when the text in a text box becomes to big for the text box to display completely. You don't need to create separate scrollbars for that kind of situation because they are built-in to the actual text box control. The main reason you can create scroll bars separately is to act as a slider. Say in your application you have a value that can be set anywhere between 0 and 100 by the user... a scrollbar would be ideal for this situation because you can either increment the value slowly using the arrows at either end or make large adjustments by dragging the actual scrollbar with the mouse.

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

Include "blitzui.bb"
Initialise( )

mywindow = Window( 20, 20, 200, 150, "My Window", 0, True )
mysbar = ScrollBar( 5, 5, 185, 20, 50, 0, 0, 100 )
mylabel = Label( 5, 30, "Value: " + 0 )

Repeat
    UpdateGUI( )
    DrawMouse( )

    sbarvalue = SendMessage( mysbar, "SM_GETVALUE" )
    SendMessage( mylabel, "LM_SETTEXT", "Value: " + sbarvalue )

    Flip
    Cls
Until KeyHit( 1 )
Destroy( )
End