Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

how to show tooltip showing plot when mouse is on a graph line?

how do i show a tooltip which shows the x and y value when mouse is on the graph line?

and i have one more question...

how do i add a horizontal scrollbar which will work as a panning??

Any advice will be appreciated....

Thanks...
0 Kudos
Message 1 of 2
(3,154 Views)
Hi Codekin,

To address your first question, the best way to create a tooltip type of message would be to register the PlotMouseMove event. This event will fire everytime you move the mouse cursor over a plot. You can then create a callback function which you can use the X and Y coordinates, which the event provides, and display them any way you desire.

Unfortunately, you can not add a Horizontal Scroll Bar to the graph control. On the graph tab of the properties, there is Track Mode selection which allows you to decide what to do with the graph as the data leaves the original screen. Although none of these allow for a scroll bar, you should be able to find the best behavior by playing around with these values.

This should get you on your way, but if you have any additional questions whatsoever, please repost and I'll get back to you as soon as I can. Thanks and have a good one.

Adam B.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(3,140 Views)