class fwt::ScrollBar

sys::Obj
  fwt::Widget
    fwt::ScrollBar

@Js
@Serializable

Source

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)

Source

Default constructor.

max

Int max

Source

The maximum value of the scroll bar.

min

Int min

Source

The minimum value of the scroll bar.

onModify

EventListeners onModify()

Source

Callback when scroll bar value is modified.

Event id fired:

Event fields:

orientation

const Orientation orientation := Orientation.horizontal

Source

Horizontal or vertical.

page

Int page

Source

Page increment size relative to difference between min and max.

thumb

Int thumb

Source

The size of thumb relative to difference between min and max.

val

Int val

Source

The current value of the scroll bar.