Fan

 

class

fwt::ScrollBar

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

@js

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.

Slots

maxSource

native Int max

The maximum value of the scroll bar.

minSource

native Int min

The minimum value of the scroll bar.

onModifySource

@transient
readonly EventListeners onModify := EventListeners()

Callback when scroll bar value is modified.

Event id fired:

Event fields:

orientationSource

native Orientation orientation()

Horizontal or vertical.

pageSource

native Int page

Page increment size relative to difference between min and max.

thumbSource

native Int thumb

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

valSource

native Int val

The current value of the scroll bar.