Syntax
xBool ListBoxSetSBlock( ListBox *listBox, ListBoxBlock sBlock );
Arguments
listBox the list box.
sBlock a C function that receives the list after a selection change, or NULL to clear the callback.
Return value
T on success, or F if the object is NULL.
Description
`ListBoxSelect()`, `ListBoxNextItem()` and `ListBoxPrevItem()` run the callback after a new selection is drawn. It receives a `ListBox *` so it can read the new position with `ListBoxGetBuffer()` and retrieve application data with `ListBoxGetCargo()`. The xBase block takes no implicit arguments.