ScrollBar.addOnScroll

Overview | Methods | This Package | All Packages

ScrollBar.addOnScroll

Assigns a delegate to the scroll event.

Syntax

public void addOnScroll( ScrollEventHandler seh )

Parameters

seh

The ScrollEventHandler delegate to be notified when the event occurs.

Remarks

The scroll event occurs when the user changes the value of the scroll bar. This event can result from a variety of actions, such as clicking a scroll bar arrow or dragging the scroll thumb. For more information about the different types of scroll events, see ScrollEventType.

After the scroll event is triggered, the valueChanged event occurs.

You can programmatically change the value of the scroll bar by calling setValue; however, only the valueChanged event will occur.

See Also    removeOnScroll