LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

center sub VI on calling VI

I'm trying to center a sub VI, which is a dialog I created, on the calling VI's front panel. I've tried setting the VI property Window Run-Time position to center, but it centers on the monitor screen, not the calling VI FP. I could pass the FP coordinates and set it that way, but I was hoping there is an easier way to do this.
 
Michael
0 Kudos
Message 1 of 2
(3,178 Views)
    If you want the dialog to hover over your main front panel in the same position you will probably have to pass the main FP coordinates. Another possibility is to place a "sub-panel" control where you want the sub-vi to display, making the frame and scroll bars of the control invisible. Then when you want the dialog vi to be visible have it opened by the sub-panel controls methods on the diagram. You could also have the main always centered on the screen, and then set the sub-vi to be centered as well. Doesn't actually track the position of the main though.




Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



0 Kudos
Message 2 of 2
(3,173 Views)