Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
930
Lock the dial in a radial gauge
posted

Hi,

Is there a way to lock the dial? Currently a user can manually move the dial. 

Thanks

Ryan

  • 53790
    Suggested Answer
    posted

    Hello Ryan

    Maybe one possible approach to achieve the desired behavior is to set property :
    ultraGauge1.Enabled = false;
    By this way the users could not be able to change manualy the dial value, but you will be able to modify the value through the code. For example:


    private void ultraButton1_Click(object sender, EventArgs e)
    {
        RadialGauge ss = ultraGauge1.Gauges[0] as RadialGauge;
        ss.Scales[0].Markers[0].Value = (double)ss.Scales[0].Markers[0].Value + 10;
    }

    Please let me know if you have any questions.
    Regards