ScrollBar

ScrollBarSetEnd

Set the screen position of the next arrow

Syntax

Signature
xBool          ScrollBarSetEnd( ScrollBar *scrollBar, int end );

Arguments

scrollBar the scroll bar.

end the bottommost row for a vertical bar or the rightmost column for a horizontal bar.

Return value

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

Description

This recalculates the track length as `end - start - 1`. Call `ScrollBarDisplay()` to recalculate the thumb position and draw the bar at the updated coordinates.

See also