Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Determine when axis range has been edited interactively

What would be the best way to determine when the user has changed the range of an axis interactively? (i.e., by clicking on it and editing it)
0 Kudos
Message 1 of 4
(3,551 Views)
Hi Irwin22,
 
One option is to hook up to the XAxisRangeChanged (or YAxis) event which will fire when you interactively edit the range.
 
See if this helps!
 
Best Regards,
Jonathan N.
National Instruments
0 Kudos
Message 2 of 4
(3,523 Views)
Thanks for the response - I should have been more specific. Is there any way to distinguish between the causes of the AxisRangeChangedEvent? For example, I can programatically set the range of an axis, or it could be changed by a user interactively, and in both cases the AxisRangeChangedEvent will get fired and it would be nice if I could determine the cause of the AxisRangeChangedEvent (similar to how you can determine the cause of a cursor move by checking the .Action property of the argument passed into the event handler).
0 Kudos
Message 3 of 4
(3,518 Views)
Hi Irwin22,

We currently don't have a way to differentiate between programmatic and interactive editing of an axis range. I've added this suggestion to our list of features to implement in the future. I don't like this option but you could just set some flag when you programmatically change the axis range and then check that flag in the event handler of the AxisRangeChangedEvent.  If it was true, then you know that it was a programmatic change.

Anyway, thanks for the feedback!

Best Regards,
Jonathan N.
National Instruments
0 Kudos
Message 4 of 4
(3,495 Views)