LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I position a vi's front panel?

In the program attached when you click the Get Details button a second vi is opened to get those details. How can I control where on the screen the front panel of the second (Choose) vi is place?

I would be most helpful to modify the library with the recommended solution.
0 Kudos
Message 1 of 2
(2,698 Views)
You can use a VI Server to position the front panel of your subVI. Look at the Ghost in the Machine.vi example that ships with LabView.
To see where to position the subVI, you need to know the position of the calling VI or of something on it. You could use a property node of the Get Details button.
1. On the front panel on Panel.vi, right-click on Get Details and select Create >> Property Node
2. Right-click on the Property Node and select Properties >> Position >> Left.
3. Point to the bottom edge of the property node and pull it down to add another element. That element should default to Top.
That will give you the coordinates of the Get Details button. Now use a VI server (based on Ghost in the Machine.vi) to place the subVI front panel the desired distance
from the Get Details button.
0 Kudos
Message 2 of 2
(2,698 Views)