LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

force subvi to open in one of main vi's pane and stick to top left corner

I have a subvi that opens in a event case, and in the main VI i have several panes, how to force a subvi's run-time position so that it opens in a specified pane and sticks in the left top corner of that pane. i might need to make the subvi size same as that pane if it resizes.

 

any help is appreciated

Thanks

0 Kudos
Message 1 of 3
(2,455 Views)

Maybe use a subpanel?  You could use property nodes to ensure its position conincided with the pane's.  

 

Not sure how to do the scaling, though.

0 Kudos
Message 2 of 3
(2,435 Views)
It does sound like you are looking for subpanels. A sunpanel is a special kind of indicator into which you can insert the front panel of another VI.

You can programatically resize the front panel of a VI, but the problem you are going to run into is that a VI that is running inside a subpanel doesn't know that it is in a subpanel and so can't automatically track changes in the subpanel size. You will need to define some sort of mechanism for communicating the size of the subpanel.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 3 of 3
(2,425 Views)