Hi guys, first off: I've tried the new search feature but it's not really helping much. Second, I've had a look in the toolbox but all the GUI examples are too complicated to understand. They're all built together and have dependencies and such.
What I'm looking for is a small example of a scroll bar. It's the maths I'm getting stuck on. I want to be able to click on the middle slider button, hold down and affect the value. I can draw it fine, it's just the maths of what that vertical y position translates to in value terms.
Has anyone got a very simple example of this as some standalone code? Or maybe some tips on the actual maths of it all.
Any help appreciated,
Matt
What I'm looking for is a small example of a scroll bar. It's the maths I'm getting stuck on. I want to be able to click on the middle slider button, hold down and affect the value. I can draw it fine, it's just the maths of what that vertical y position translates to in value terms.
Has anyone got a very simple example of this as some standalone code? Or maybe some tips on the actual maths of it all.
Any help appreciated,
Matt