LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to control cursor of ActiveX 3DGraph in Labwindows

What is the procedure for obtaining the handle to a cursor in the 3DGraph Control, I have tried using the CWCursors3DItem call, passing the graph handle and a short Variant =1 for the first cursor, and using the obtained handle to set the xyz position with CWCursor3DSetPosition with no success, any hints.

Thanks
0 Kudos
Message 1 of 3
(3,072 Views)
Try this

CW3DGraphLib__DCWGraph3DGetCursors (graphHandle, NULL, &cursorsHandle);
CW3DGraphLib_CWCursors3DItem(cursorsHandle,NULL,CA_VariantInt(1),&cursorHandle);
CW3DGraphLib_CWCursor3DSetPosition (cursorHandle, NULL, 20.0, 150.0, 1.0);

First get a handle on the Cursors collection using the graph handle.
Then get a single cursor handle from the Cursors collection.
Then use the cursor handle to set the position.

Hope this helps
Bilal Durrani
NI
0 Kudos
Message 2 of 3
(3,059 Views)

Did anyone ever figure out how to make a cursor on a 3Dgraph?  It looks like the commands are there but, I can not generate a cursor.  I can't find any examples or any information in the help file.

Thanks

Blake

0 Kudos
Message 3 of 3
(2,688 Views)