LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to set mouse cursor in Xcontrol?

Solved!
Go to solution

facade.png

In my Xcontrol, I want to change "mouse cursor". But I found I can only change the cursor in the VI ,which contains my Xcontrol.

 

As a example, I edited the labview example "Dual Mode Thermometer". In facade/Data Change event, I set cusor to 2. but it didn't work?

 

0 Kudos
Message 1 of 4
(3,443 Views)
Solution
Accepted by topic author superlvjf

Here's an example to change the cursor when the user hovers the thermometer

This Mouse Enter is for the VI class of the Facade VI:

Simple Dual Mode Thermometer XControl.xctl_Simple Dual Mode Thermometer Facade_BD.png

 

I have a similar setup for the Mouse Leave event with the value 1.

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 2 of 4
(3,427 Views)

Thank you,Ton .

It works.

0 Kudos
Message 3 of 4
(3,393 Views)

I have an XControl within an XControl on a dynamic VI.  The innermost XControl has an intensity graph and depending on what happens in the mouse click event, I may want to switch my cursor to a red X.  When I do this, it doesn't work right, but always switches to the hand cursor.  I've tried the above solution but it made no difference, presumably because this XControl is on the facade of a different one.  The automatic cursor changes work fine, like when I select different tools on the graph palette.

--
Tim Elsey
Certified LabVIEW Architect
0 Kudos
Message 4 of 4
(3,114 Views)