Jump to content

How to make SUBVI change Mouse Icon programmatically


Recommended Posts

Posted (edited)

Good Evening

I'm new in LabVIEW, please be patient with me :)

I was working in a User Interface for my application. My plan is to use a main.vi file and load a subvi in each of the four splitters.

But there are two problems that I cannnot solve:

1) I want transform the part of the code that change the mouse icon into a subvi. But the option Edit > Create SubVI isn't working well because of the boolean value change in the Event Structure

2) When I load a subvi into a sub panel, I want the "mouse icon change" code work inside the subvi. How can I do that without copying the code into the subvi?

Edited by mthheitor
Posted

Mouse icon? Do you mean the cursor? That is, the object that moves around when you move your mouse?

If so, there is a cursor VI that can set it.

Posted (edited)

Sorry, forget to attach the VI file.

 

@Gribo yes, it's the mouse cursor

 

Added comment in the parts of the code that I want to modify

main.vi

subvi4.vi

 

Each one of the five "Panes" will have a Subpanel (with the option Fit Control to Pane activated) where a subvi will be loaded

Edited by mthheitor
  • 1 month later...
Posted

Thanks @ShaunR, the "Inserted VI" Property is available in LabVIEW 2012. Worked perfectly.

 

Please, can you explain me why we had to change the Property: Owning VI (Property Node) from my old code inside the case structure "Mouse Enter" and "Mouse Leave" to a VI Server Reference (your new code).

It's about the refnum, right? But couldn't understand that very well.

 

The Property Node "Owning VI" gets the refnum from the subvi, but we needed the refnum from the main.vi?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.