Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

PlotMouseMove event in C# and Measurement Studio 8.0.1

In measurement studio 8.0.1, where is the PlotMouseMove event ? What is it's equivalent ? I am using C#. I see PlotAreaMouseMove but not PlotMouseMove. If the event is not there anymore (I was using measurement studio 6 with vb6 before), how do you know when the mouse is over a plot in studio 8.0.1 and C# ? Thanks, Eric.
0 Kudos
Message 1 of 2
(3,923 Views)
You can use the PlotAreaMouseMove event and then test for a plot using the hit testing methods we make available.

  private void waveformGraph1_PlotAreaMouseMove(object sender, MouseEventArgs e)
        {

            {
                XYPlot plot = waveformGraph1.GetPlotAt(e.X, e.Y);
                if (plot != null)
                    Debug.WriteLine("over plot");              

            }
        }


You can also use the HitTest methods available on the graphs. See the help for more information.
Bilal Durrani
NI
0 Kudos
Message 2 of 2
(3,916 Views)