Walter,
I set the scale.maximize to the value I wanted but the label of the number turn into a double value
for example 4.000005 display instead of 4I assume you mean the GraduatedScale.Maximum and .Minimum properties.
Hi Walter,
can you give an example how to use labelFormat.
An Example for override GetLabelString would be nice too.
I have the same problem
scale.Minimum = 0
scale.Maximum = 9
but the instrument shows me for the max display label 8.9999999 but it should be 9!
so how can i force it to an integer value for the scale label?
can you give an example how to use labelFormat.
this.LabelFormat = "g2";
here is how that is used in the Instruments code:
String format = this.LabelFormat;
return val.ToString(format);
so… you can look at ToString to see what LabelFormat does.
An Example for override GetLabelString would be nice too.
See the Timeline class in the InstrumentDemo sample.