Profile Picture

Gauge Axis Questions

Posted By Lou Laskey 11 Years Ago
Author
Message
Lou Laskey
Posted 11 Years Ago
View Quick Profile
Junior Member

Junior Member (24 reputation)Junior Member (24 reputation)Junior Member (24 reputation)Junior Member (24 reputation)Junior Member (24 reputation)Junior Member (24 reputation)Junior Member (24 reputation)Junior Member (24 reputation)Junior Member (24 reputation)

Group: Forum Members
Last Active: 9 Years Ago
Posts: 24, Visits: 2

I have a couple questions regarding gauges and thought I would put them in one post:

1. Axis labels not changing.

I have a linear gauge with my labels on the axis (autoLabels = false).  Initially it is fine but I sometimes need to change the labels while running.  I set the new labels by clearing old (.Labels.Clear()) then adding the labels (.Labels.Add(someText)).  The new lables are not displaying.  If I access the chart editor after changing the labels I can see the new text in the Labels list in the ScaleConfigurator but not on the form.  I have tried Refresh at all levels (Gauge panel, chart control, form) to no avail.

2. HitTest on gauge axis

When a mouse down event occurs and the hit is on the gauge axis I want to be able to move the indicator to that value.  I can determine that the hit occurred on the axis but I am having some issue converting it to a value.  There was a response on here how to accomplish this on a chart but not a gauge, unless I am missing something simple (which is certainly a possibility) and I am making this more difficult than it is (which, according to some, is the more likely).

TIA,

Lou






Similar Topics


Reading This Topic