ScrollBar.setValue

Overview | Methods | This Package | All Packages

ScrollBar.setValue

Sets the value of the scroll bar.

Syntax

public void setValue( int value )

Parameters

value

The new value of the scroll bar.

Exceptions

WFCInvalidArgumentException thrown if value is less than the minimum value or greater than the maximum value.

Remarks

The value of the scroll bar represents the current position of the scroll thumb. When you call setValue at run time, the scroll bar control is automatically redrawn to reflect the new position.

Calling setValue triggers a valueChanged event; however, a scroll event is not generated.