Interface ScrollBar
access this type via: ui.ScrollBar (provides, requires or uses)
--- extends:XYMouseObject
--- semantic variants: <default>, h
A scroll bar widget allowing selection of an integer between zero and a given value, usually including a slider and buttons.
Events
scrollMoved()
Functions
void setMaxValue(int v)
void setIncrement(int v)
void setScrollPos(int v)
int getScrollPos()
void setLength(int pixels)
Events
scrollMoved Get the current text in the field.
void setMaxValue(int v)
Set the maximum value of the scroll bar.
void setIncrement(int v)
Set the increment step of the scroll bar, for example when a scroll arrow is clicked.
void setScrollPos(int v)
Set the current position of the scroll bar.
int getScrollPos()
Get the current position of the scroll bar.
void setLength(int pixels)
Set the length of the scroll bar, in pixels (the size of the widget, which is equivalent to height/width depending on whether the scroll bar is displayed vertically or horizontally).