• entries
246
175
• views
153087

CircleSliderControl v1.0

106 views

circleSliderControlDemo_1_0.zip
(5.34 KB) prereq: .NET

CircleSliderControl v1.0by steelgolemintrowhile working on my sprite class i realized it would bepretty cool if i made a viewer, and one of the things ineeded for the viewer was some way to change the directionthe sprite was facing. i liked the idea of a circular slidercontrol so i built it.usagedrop one in and handle the DirectionVectorChanged event.it'll fire if you set DirectionVector or the user moves thesliderButton around.notes- the exposed DirectionVector property is a PointF object- jpetrie says my code isn't thread-safe- Resize keeps the control exactly square and goes with thesmaller dimension, so change both at the same time if youwant it to go biggertodo- check control class for over-exposion

1 Comment

Quote:
 jpetrie says my code isn't thread-safe

This and this cover the problem I mentioned, and some solutions, rather well.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account