Help with scrollbar?

fokum8

New member
Joined
Dec 5, 2014
Messages
4
Location
United Kingdom
Programming Experience
Beginner
What does scrollbar code look like? Do you just move objects up and down depending on where the scrollbar is?

I'm trying to create a vscrollbar in my application but I can't find the code anywhere. Can someone help?
 
The scroll bar control will basically raise an event when it gets scrolled and tell you where the handle is. That's it, that's all. It's up to you to give meaning to that information. A scroll bar can be used for all sorts of things so it can't inherently know what to do when it gets scrolled, much like a Button can't inherently know what to do when it's clicked.
 
Back
Top