ScrollBar.addOnValueChanged

Overview | Methods | This Package | All Packages

ScrollBar.addOnValueChanged

Assigns a delegate to the valueChanged event.

Syntax

public void addOnValueChanged( EventHandler eh )

Parameters

eh

The EventHandler delegate to be notified when the event occurs.

Remarks

The valueChanged event occurs when the value of the scroll bar is changed, either programmatically or by the user.

Note   When the user changes the value of the scroll bar, the scroll event is also triggered. The scroll event occurs before the valueChanged event.

To programmatically change the value of the scroll bar, call setValue.

See Also    removeOnValueChanged