class fwt::ScrollBar
sys::Obj fwt::Widget fwt::ScrollBar
ScrollBar is used to position a widget too wide or tall to be visible at one time. ScrollBars cannot be created directly, rather they are accessed widgets which support scrolling via hbar
and vbar
.
- make
-
new make(|This|? f := null)
Default constructor.
- max
-
Int max
The maximum value of the scroll bar.
- min
-
Int min
The minimum value of the scroll bar.
- onModify
-
EventListeners onModify()
Callback when scroll bar value is modified.
Event id fired:
Event fields:
Event.data
: new value of scroll bar
- orientation
-
const Orientation orientation := Orientation.horizontal
Horizontal or vertical.
- page
-
Int page
Page increment size relative to difference between min and max.
- thumb
-
Int thumb
The size of thumb relative to difference between min and max.
- val
-
Int val
The current value of the scroll bar.