LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

runtime position of subvi as in in main vi

Is there a property to let run subvi's on the same position as in main vi. I missing this feature in the window runtime property.
 
Kind regards Reto  
0 Kudos
Message 1 of 5
(1,683 Views)
Hi Reto,

if you need to have your subvi at the same screen position as the main vi (hiding it) you could do this:
Get a reference of the main vi, feed it to the subvi. In the subvi you can read the properties of the main vi (window size and position) and adjust the properties of the subvi accordingly (all by using property nodes). You can also hide the main vi by hiding it (property Front Panel Window:State)...
Best regards,
GerdW


using LV2016/2019/2020 on Win8.1/10+cRIO
0 Kudos
Message 2 of 5
(1,679 Views)
What I'm looking for is this property. I can just find  frontpanel run time position method which indicats where the origin is.  Where can I get the window position? I'm using Labview 8.2 
0 Kudos
Message 3 of 5
(1,674 Views)
Hi reto,

it's the FP.WinBounds property as shown in the attached vi!
Best regards,
GerdW


using LV2016/2019/2020 on Win8.1/10+cRIO
0 Kudos
Message 4 of 5
(1,669 Views)
Thank's a lot.
0 Kudos
Message 5 of 5
(1,666 Views)