Easy Custom scrollbar?

Hi,
I have a dynamic text box that is getting its content from a .txt file. I have a simple scrollbar that has a slider insde of a box that denotes the length of the path. What is the simplest way to program this scrollbar?

Thanks!