LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sizing VI and positioning controls

I have a vi that has a subpanel, and the vi would load either VI A, VI B, or VI C into the subpanel.

 

For VI A, B, and C, each has a decoration border and similiar controls.  I want to position them at ths same coordinates, and I want to re-size all the vi to the same size. 

 

When the subpanel loads VI A, B, and C, I don't want to see control or border shifting.  What is the best way to achieve this?

 

 

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 1 of 4
(2,086 Views)

It may not be the best way, but I've used scripting to adjust positions in real time.

Make a new VI that has a subpanel. Load A, B and C (one at a time) into the subpanel.

Populate an arrays of clusters of: control name, top, and left. One array for A, one for B, one for C.

Put those values into indicators. When you change the indicator top or left, move the control on the subVI.

 

To skip the scripting, just load the VIs one at a time in the subpanel, and move the controls by hand.

Message 2 of 4
(2,085 Views)

Can you elaborate a little bit more?  I don't understand your approach.

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 3 of 4
(2,072 Views)

Can't seem to post - trying again. Here's the beginning of one option.

0 Kudos
Message 4 of 4
(2,040 Views)