LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to control cursors attributes with boolean button

Solved!
Go to solution

Hi everybody,

I would like to control the attributes of cursors by clicking on a boolean button. For instance: when I click on my button, I want the cursor to disappear or change color ...
How can I do this ? I saw that I can select cursor style, cursor color etc. in the property node of the XYgraph but I don't know how to use it.
Any idea ?

Best regards
MartinO.

0 Kudos
Message 1 of 6
(3,089 Views)

Hi,

 

By cursor, do you mean the windows cursor or the XYgraph cursor? 

0 Kudos
Message 2 of 6
(3,082 Views)
Solution
Accepted by topic author MartinO.

You first need to identify your active cursor then you can set the cursor visible property with your Boolean control. So create a property node, drag to show two properties, set the first to ActCrsr ans wire the cursor number to it (0 for the first cursor). Now select Cursor.Visible for the second property and wire your Boolean to this. You can add other properties after this.

 

Ian

Message 3 of 6
(3,081 Views)
Message 4 of 6
(3,071 Views)

Thank you guys,


It's exactly what I want. But I still have another problem with Cursor.visible. The condition to make my cursor visible is "True" and for "False" there is nothing, but I want to hide my cursor first. So I guess I have to put something on the "False" condition ...


0 Kudos
Message 5 of 6
(3,056 Views)

It's Ok ! thanks

0 Kudos
Message 6 of 6
(3,042 Views)