Implementing a radial control in C#

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nodoid
    New Member
    • May 2010
    • 19

    Implementing a radial control in C#

    Hi,

    After a fruitless half hour or so of searching on google and MSDN I'm at a loss. I'm trying to implement a radial control in C# - to make things worse, I'm not even sure it's called that.

    What I'm after is something that looks like a hi-fi radio tuner or volume knob.

    My first thought was to mix a standard slider control with a circle; when the slider is turned, the control has a higher value. Only problem there is that a slider is left to right only, so not really what I'm after (I need a circular motion not l->r)

    Next thought is to just draw the damned thing using System.Drawing and intercept mouse events to redraw a line when it's clicked on the dial. That would possibly work, but would be somewhat messy.

    Does anyone know of anything on the likes of CodeProject that can be used for this? I'm really after an open source implementation than a dll I just use (how else is someone gonna learn?)

    Thanks

    Paul
  • GaryTexmo
    Recognized Expert Top Contributor
    • Jul 2009
    • 1501

    #2
    I googled "Dial Control" and got the following...





    Your best bet, really, is to do the drawing yourself. You'll get exactly what you need and it's only messy if you code it that way ;)

    Whichever route you go, best of luck!

    Comment

    Working...