Syntax
xBool ScrollBarSetSBlock( ScrollBar *scrollBar, ScrollBarBlock sBlock );
Arguments
scrollBar the scroll bar.
sBlock a C function that receives the bar on each call to ScrollBarUpdate(), or NULL to clear the callback.
Return value
T on success, or F if the object is NULL.
Description
The C callback receives a `ScrollBar *` so it can read the stored thumb position or refresh the current item and total from application data before the calculation. The xBase block takes no implicit arguments.