Scrollbars are objects, the user can scroll vertically or horizontally, this can change the value.
Here is a example of how to create a standard scrollbar:
Here are all possible functions available for scrollbars. Remember scrollbar inherit from object:
setSymbol
Changes the symbol
parameters: char symbol
returns: self
setBackgroundSymbol
Changes the background symbol color
parameters: number symbolcolor
returns: self
setBarType
If the bar goes vertically or horizontally
parameters: string value ("vertical" or "horizontal")
returns: self
setMaxValue
the default max value is always the width (if horizontal) or height (if vertical), if you change the max value the bar will always calculate the value based on its width or height - example: you set the max value to 100, the height is 10 and it is a vertical bar, this means if the bar is on top, the value is 10, if the bar goes one below, it is 20 and so on.
parameters: any number
returns: self