mthheitor Posted October 19, 2018 Report Share Posted October 19, 2018 (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 October 19, 2018 by mthheitor Quote Link to comment
Benoit Posted October 22, 2018 Report Share Posted October 22, 2018 It is quite confusing when I am reading your explanation. Can you post your actual code? Benoit Quote Link to comment
Gribo Posted October 22, 2018 Report Share Posted October 22, 2018 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. Quote Link to comment
mthheitor Posted October 23, 2018 Author Report Share Posted October 23, 2018 (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 October 23, 2018 by mthheitor Quote Link to comment
ShaunR Posted October 23, 2018 Report Share Posted October 23, 2018 main.vi I've back-saved to LV 2012 but I don't have 2012 available ATM to check (and can't remember when the "Inserted VI" property was introduced.) 1 Quote Link to comment
mthheitor Posted November 27, 2018 Author Report Share Posted November 27, 2018 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? Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.