This isn’t quite finished but it works well enough for those who want to tinker with it. It’s a little slider for setting ranges instead of single values.
Here’s a screenshot…
Here’s the source for just the component…
RangeSlider.zip
And here’s an example project so you can try them out straight away.
RangeSliderTest.zip
And finally, if you just want to try it out as a built .exe…
(ReleaseBuild of RangeSliderTest) .exe
Things still left to do…
- resizing the handles needs bounds fixing
- i want to put it into a single component with value display built in (those in the example are just painted on the parent after change messages)
- the function names need tidying up and reorganising
- more comments
- allow for vertical slider (needs check in RangeBarHandle)
Despite these omissions at this stage i thought it was a neat fun component. Plus, those of you who are bored and not currently working on a project can think of it as an assignment; build on the Component, completing the above tasks. Learn how the Component works, and see if you can find ways of improving it for your own needs.
Let me know how you get on i’ll be working on it anyway