1. Update labels.
I still am not seeing the updated lables on the screen. Here is the code I am using:
public void ModifyScaleLabels(NGaugeAxis axis,
List<ScaleItemsStruct> argScaleItems)
{
// only set the local label struct if this isn't it
if (!argScaleItems.Equals(scaleItems))
{
scaleItems.Clear();
scaleItems.AddRange(argScaleItems);
}
// get the scale configurator
NLinearScaleConfigurator configurator = (NLinearScaleConfigurator)axis.ScaleConfigurator;
// clear old labels
configurator.Labels.Clear();
// set range and viewrange
axis.Scale.ViewRange = new NRange1DD(0, argScaleItems.Count - 1);
axis.Range = new NRange1DD(0, argScaleItems.Count - 1);
// add the new lables
foreach (ScaleItemsStruct sis in argScaleItems)
{
configurator.Labels.Add(sis.itemText);
}
// update the scale
axis.UpdateScale();
// if loading flag is not set then refresh all
if (!bLoading)
Refresh();
}
As I mentioned, if I look at the the ScaleConfigurator -> Labels via the editor they are correct.
2. Hit test
This solution worked perfectly.
Thanks,
Lou