
An example on how to make a clickable scrollbar, which automatically adapts itself on any list modifications (inserted / removed entries).
Press Enter
to add items or Delete
to remove items. You can use either your mouse wheel
or a mouse click
and release to change the scroll value of the scrollbar, which will update the shown array list entries.