08-17-2009 08:58 AM
I'm using a graph with a right and left Y-axis (2 datasets). I'm trying to use one cursor to select a point in time (x) and the y values in both datasets. I can't figure out how to control which value is returned for the y value when using the GetGraphCursor call.
GetGraphCursor (panelHandle, PANEL_GRAPH, yourCursorNumber, &x, &y)
Solved! Go to Solution.
08-17-2009 04:28 PM
Using SetCursorAttribute with attribute ATTR_CURSOR_YAXIS should be what you are looking for. The online help for this attribute explains it wery well:
Description: Used to change the Y axis with which the graph cursor is associated.
When a graph cursor is created, the Y axis to which it is associated is determined by the value of ATTR_ACTIVE_YAXIS. Afterwards, the association can be changed using ATTR_CURSOR_YAXIS.
The associated Y axis serves as the reference for the cursor position coordinates in calls to SetGraphCursor and GetGraphCursor.