05-11-2006 06:02 AM
05-11-2006 06:34 AM
05-11-2006 06:54 AM
Look the Draw Graph with Events.vi shipped with labview. I would imagine you could adapt the techniqes used there to move the cursor.
Goto example finder and type in mouse into search. You should see the example listed after that.
David
05-12-2006 02:50 AM
Hi David
I've looked into the example you suggested and it might be possible to modify it to get the cursor function I want. The only problem I can see so far is how to disable this function when using the zoom-tool instead of cursors. Anyway, I find it a bit strange that this hasn't been implemented as an option in the Graph control, as this cursor function is very common in other programs. Is there a link to where I can suggest this improvement to LV?
05-12-2006 02:55 AM
05-12-2006 03:03 AM
You could use the Palette:Active Tool Property
Property of GraphChart.
Sets the tool that is currently selected on the graph palette. 0 is the selection cursor, 1 is the panning tool, and 2-7 are the zoom tools
to detect which tool you have selected
05-12-2006 03:57 AM
02-22-2007 02:12 PM
Don't know if you found a solution that worked for you, but I was working on the same problem and came up with a solution that uses a "Mouse Up" event. From the coordinates of the "Mouse Up" event, it invokes a node to get the XY coordinates from the pane coordinates, then uses the Property Node "Cursor Position" to set the cursor to that position. Seems to work pretty well. I didn't look into it enough to allow changing within the cursor legend (the mouse up event will prevent you from changing it), but I'm sure you it wouldn't be too much hassle.
Michael