Updated Scrollbar (markdown)

Robert Jelic
2022-04-02 15:14:47 +02:00
parent 8832929c1e
commit 2438cd706e

@@ -39,3 +39,14 @@ local aScrollbar = mainFrame:addScrollbar("myFirstScrollbar"):setBarType("horizo
````
**args:** "vertical" or "horizontal"<br>
**returns:** the object<br>
## setMaxValue
the default max value is always the width (if vertical) or height (if horizontal), if you change the max value the bar will always calculate the value based of his width or height - example: you set the max value to 100, the width is 10 and it is a vertical bar, this means if the bar is on top, the value is 10, if the bar goes to
the second line, it is 20 and so on.
````lua
local mainFrame = NyoUI.createFrame("myFirstFrame"):show()
local aScrollbar = mainFrame:addScrollbar("myFirstScrollbar"):setBarType("horizontal"):show()
````
**args:** "vertical" or "horizontal"<br>
**returns:** the object<br>