LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to hide graph cursors without setting number of cursors to zero

I am using labwindows/cvi 8 and I would like to be able to hide and unhide cursors on a graph while retaining their color and position.  I have found that I can use the number of cursors attribute for the graph, if I set it to zero it removes the cursors.  Then if I turn around and set it to the original number of cursors, say 4, then I am forced to reprogram all of the attributes for the cursors such as position, color, etc.  Isn't there a simple way to just hide the cursors.  I found a enable / disable attribute, but that does not hide the cursors.
 
Thanks in advance for any help
Darren
Message 1 of 2
(3,109 Views)

Hello Darren,

I think there are two ways to do this:

1: use SetCursorAttribute with attribute ATTR_CURSOR_COLOR and value VAL_TRANSPARENT.

2: use SetCursorAttribute  twice. Once with attribute ATTR_CROSS_HAIR_STYLE and value VAL_NO_CROSS, and once with attribute ATTR_CURSOR_POINT_STYLE and value VAL_NO_POINT.

I don't know if there is any other, more decent way to do this...

Message 2 of 2
(3,105 Views)