Syntax
xBool ListBoxSetVScroll( ListBox *listBox, ScrollBar *vScroll );
Arguments
listBox the list box.
vScroll a scroll bar with orientation SCROLL_VERTICAL, or NULL to remove the attached bar.
Return value
T on success, or F if the object is NULL or vScroll has an orientation other than SCROLL_VERTICAL.
Description
On success the list takes ownership of the supplied bar and frees the previous one when the two pointers differ. Passing the currently attached bar resynchronizes it. On failure the caller retains ownership of a supplied replacement.
Position the bar with its own screen coordinates. The list derives the bar's total and current values from the item count, visible row count and first visible item. `ListBoxDisplay()` draws the bar when the item area is open.