drag circular knob to get a variable

corina shared this question 4 years ago

how am i able to get a variable by turning a circular knob?

basically, i have a dot in a circle that i would be like to be turned from 0-360degrees and the corresponding angle would lead to a variable input of 0-100years.

can this be done?

Comments (1)



There isn't a widget that does this but you can build what you are describing by placing lots of images maps (100 in your case) in circle and on the dot that you want to act as the indicator add onDragStop events that set the value to the variable depending on where the drag has stopped.

I know this is a tedious solution but it is everything I can think of for now.

Best regards,