ScrollBar

ScrollBarDisplay

Draw the full scroll bar and its thumb

Syntax

Signature
xBool          ScrollBarDisplay( ScrollBar *scrollBar );

Arguments

scrollBar the scroll bar.

Return value

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

Description

This recalculates the track length and thumb position, paints the track with the first color, then draws both arrows and the thumb with the second color. Use it for the initial display and after changes to geometry, style or colors.

A track shorter than two cells or an item total below two makes the call return `T` without drawing. The stored thumb position is retained in that case.

See also