09-07-2006 10:05 AM
09-08-2006 11:49 AM
Howdy Steve,
I tried reproducing the behavior you described by working with our graphcursors
shipping example that uses the GetGraphCursorIndex()
function (Help >> Find Examples; Select the Browse tab and
navigate to Building User Interfaces >> Displaying Data >>
Graphs and Charts).
All graph cursors have a cursor mode that specifies the behavior of the graph
cursor. Free-form cursors move to any location inside the plot area while
snap-to-point cursors snap to the nearest point when released.
The GetGraphCursorIndex() function obtains
the plot handle and array index of the point to which the cursor is currently
attached.
Obtains the plot handle and array index of the point to which the cursor is currently attached. The plotHandle output will return the ID of the plot to which the cursor is attached. If the cursor is not attached to the plot, the function will return -1. The arrayIndex output will return the array index of the data point to which the cursor is attached. If the cursor is attached to a point plot, or if the cursor is not attached to a data point, the function will return a -1.
If you change the Y-axis to
be a smaller range that your data points, the snap-to-point cursor will simply
find the nearest point to attach itself to at the top of the plot.
Hope this helps clarify things!
Best Regards,