LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Graph cursors - behaviour when selected

I'm using Measurement Studio 1.01, LabWindows/CVI 5.5.1 on a Windows 98 PC.

I have a program using multiple graph cursors and GetGraphCursor( ) to allow
a user to see the x and y values of the cursor as the user positions the
cursor over a waveform.

The positioning needs to be very accurate, but unfortunately as soon as the
user clicks on a graph cursor, the cursor crosshairs become thicker
(presumably as an indication of the selected cursor). This stops the user
from positioning the cursor accurately.

Is there any way I can keep the graph cursor crosshairs permanently thin?

TIA


Dugald Bell
0 Kudos
Message 1 of 3
(3,237 Views)
There isn't a way to change how a cursor is hilighted when it is selected. There is a workaround though. If you put your graph in a Track Mode of Plot & Cursor Events, then you will get an event for Cursor Mouse Down and Cursor Mouse Up when a user interacts with a cursor. With these events and the Mouse Move event on the plot area, you could manually move the cursor without using the built-in cursor moving options. Just set a flag with the CursorMouseDown event and set it back with the CursorMouseUp event. Then, in the MouseMove event, move the selected cursor programatically while the flag is set.

Best Regards,

Chris Matthews
0 Kudos
Message 2 of 3
(3,237 Views)
How do I generate graph cursor move events? I know that in the programmers toolbox, you may enable extended mouse events, but I can't seem to find how to enable graph cursor events. Thanks.
0 Kudos
Message 3 of 3
(3,237 Views)