ScrollBar

ScrollBarSetCurrent

Set the item position to indicate with the thumb

Syntax

Signature
xBool          ScrollBarSetCurrent( ScrollBar *scrollBar, int current );

Arguments

scrollBar the scroll bar.

current the item position to store, normally from 1 through the total number of items.

Return value

T on success, or F if the object is NULL.

Description

The setter stores the value directly. `ScrollBarUpdate()` or `ScrollBarDisplay()` later calculates the thumb position and limits it to the track.

See also