Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

can I put a cursor exactly at x,y on cwgraph

I am working out some statistics from some anologue data i've recorded and there are certain points I have calculated that I would like to stick a cursor on which is not moved by the mouse or anything else. I would like to say

CWGraph1.Cursor(1) x1,y1
CWGraph1.Cursor(2) x2,y2
CWGraph1.Cursor(3) x3,y3

what is the actual code for this as I have been trying and getting nowhere
0 Kudos
Message 1 of 2
(3,090 Views)
The key is to use the SetPosition method on the cursor. So the real code for your pseudo-code above would look like this:

CWGraph1.Cursors(1).SetPosition x1, y1
CWGraph1.Cursors(2).SetPosition x2, y2
CWGraph1.Cursors(3).SetPosition x3, y3

- Elton
0 Kudos
Message 2 of 2
(3,090 Views)