Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

How to emphasize a point ?

Hi
I've got some points displayed on a CWGraph.
I would like to emphasize a point when the mouse pointer is above it (by changing its color and size, for example).
How can i do this ?
Thanks
0 Kudos
Message 1 of 6
(5,600 Views)
We do not currently have a way of emphasizing a specific point on a plot. Probably the easiest way to get this effect would be to use a graph cursor to highlight the point. Cursors can be setup to snap to the plot points and have built in functionality to be moved with the mouse.

Another way would be to use a second plot that is a single point (with a large point style) that you move based on the cursor position over the plot area. You can use the PlotAreaMouseMove event to track the cursor position. This way would be harder to develop since you have to implement the movement of the plot in the MouseMove event handlers.


Best Regards,

Chris Matthews
Measurement Studio Support Manager
0 Kudos
Message 2 of 6
(5,600 Views)
thanks
The problem is that when a cursor is on a point, the messages PlotMouseDown don't work anymore. So i'd like to try to enlarge the point but i don't know how to do that. Can i find a sample anywhere ?
0 Kudos
Message 3 of 6
(5,600 Views)
the reason the PlotMouseDown event stops, is probably because you are getting CursorMouseDown events instead. You could recreate what you are doing for the PlotMouse events in your CursorMouse events.
If this doesn't work, I suggest the separate plot method with 1 point that I mentioned.

Best Regards,

Chris
0 Kudos
Message 4 of 6
(5,600 Views)
I've seen that thanks
Is it possible to enlarge cursors ?
0 Kudos
Message 5 of 6
(5,600 Views)
No, not currently. The next release will see improvements in adding items such as text and highlights to the graph.

Chris
0 Kudos
Message 6 of 6
(5,600 Views)