ScrollBar

ScrollBarSetTotal

Set the item count used to position the thumb

Syntax

Signature
xBool          ScrollBarSetTotal( ScrollBar *scrollBar, int total );

Arguments

scrollBar the scroll bar.

total the number of items to store.

Return value

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

Description

The setter stores the count directly. Call `ScrollBarUpdate()` or `ScrollBarDisplay()` to recalculate the thumb position. A count below `2` suppresses drawing and leaves the stored thumb position in place.

See also