Hi
How can I set or reset the MaxValueIndicator in vertival gauge control.
TeeChart buid Version: 4.0.2009.42283
Thanks
MaxValueIndicator Gauge Control
Re: MaxValueIndicator Gauge Control
Hi Sven,
Could you please explain what are you exactly trying to change in the MaxValueIndicator. the following code seems to work as expected here.
Also note that the build you are using (4.0.2009.42283) is not the latest (4.0.2009.62332).
Could you please explain what are you exactly trying to change in the MaxValueIndicator. the following code seems to work as expected here.
Code: Select all
Steema.TeeChart.Styles.VerticalLinearGauge gauges1 = new Steema.TeeChart.Styles.VerticalLinearGauge(tChart1.Chart);
gauges1.Maximum = 1000;
gauges1.Value = 500;
gauges1.MaxValueIndicator.Color = Color.Green;
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: MaxValueIndicator Gauge Control
Hi Alonso
Thanks for your answer.
The Problem is not the maximum or minimum value of the gauge. I want to reset the MaxValueIndicator in the gauge, after a run. I miss a a property like gauge1.MaxValueIndicator.Reset()
Thanks for your answer.
The Problem is not the maximum or minimum value of the gauge. I want to reset the MaxValueIndicator in the gauge, after a run. I miss a a property like gauge1.MaxValueIndicator.Reset()
Code: Select all
public void InitGauge()
{
textBoxValue.Text = "0";
verticalLinearGauge.Minimum = MinValue;
verticalLinearGauge.Maximum = MaxValue;
verticalLinearGauge.Value = 0.0;
verticalLinearGauge.Axis.Title.Text = AxisTitle + " " + Unit;
verticalLinearGauge.GreenLineStartValue = MinValue;
verticalLinearGauge.GreenLineEndValue = MaxValue * 0.78;
verticalLinearGauge.RedLineStartValue = MaxValue * 0.8;
verticalLinearGauge.RedLineEndValue = MaxValue;
double axisIncrement = (MaxValue / 5);
verticalLinearGauge.Axis.Increment = Math.Round(axisIncrement, 2);
// cannot reset or init the MaxValueIndicator after a run
verticalLinearGauge.MaxValueIndicator = MinValue;
verticalLinearGauge.MaxValueIndicator.Reset();
verticalLinearGauge.MaxValueIndicator.Clear();
}
Re: MaxValueIndicator Gauge Control
Hello Sven,
MaxValueIndicator is an object that has many properties associated. Please, could you say us exactly what you want to do Clear() or Reset() methods and what of these properties you would like that be changed
Thanks,
MaxValueIndicator is an object that has many properties associated. Please, could you say us exactly what you want to do Clear() or Reset() methods and what of these properties you would like that be changed
Thanks,
Best Regards,
Sandra Pazos / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: MaxValueIndicator Gauge Control
Hi Sandra
I found the problem with the MaxValueIndicator. I have created an vertical gauge control in the Designer from Studio 2008. If the Form InitilizeComponent() is initilized the gauge control value is the value from designer (gauge1.value = 17.89146576)
Now I create a new gauge Object with gauge.value = 0.0 in a Init() method. If I want to reset the MaxValueIndicator I call the init method and create a new gaugeControl.
Thanks for your help !
best regards
sven
I found the problem with the MaxValueIndicator. I have created an vertical gauge control in the Designer from Studio 2008. If the Form InitilizeComponent() is initilized the gauge control value is the value from designer (gauge1.value = 17.89146576)
Now I create a new gauge Object with gauge.value = 0.0 in a Init() method. If I want to reset the MaxValueIndicator I call the init method and create a new gaugeControl.
Code: Select all
public Form1()
{
InitializeComponent();
if (!DesignMode)
{
verticalLinearGauge1.Dispose();
tChart3.Series.Remove(verticalLinearGauge1);
verticalLinearGauge1 = null;
verticalLinearGauge1 = new Steema.TeeChart.Styles.VerticalLinearGauge();
verticalLinearGauge1.Value = 0.0;
verticalLinearGauge1.Maximum = 50;
verticalLinearGauge1.Minimum = 0;
tChart3.Series.Add(verticalLinearGauge1);
PerformLayout();
}
}
best regards
sven
Re: MaxValueIndicator Gauge Control
Hi Sven,
Now I understood the problem so I've added it to the wish list to be implemented in future releases (TF02014699).
Now I understood the problem so I've added it to the wish list to be implemented in future releases (TF02014699).
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |