ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Center vi in a subpanel

Hello,

 

I would like to adjust or center my VI which is inserted in my subpanel to have a modular software.

 

The poor is that my software will adapt automatically with my screen size.

 

R. Kaszubiak

0 Kudos
Message 1 of 7
(4,613 Views)

Hello R. Kaszubiak

 

Have you tried  File > VI Properties > Window Run Time Position-- select position Centered. This will make your VI always appear in center while running the program

Nghtcwrlr

---------------------------------------------------------------------------------------------
*************************************
---------------------------------------------------------------------------------------------
0 Kudos
Message 2 of 7
(4,564 Views)

Press control --> I then a VI properties window will open then remaining I attached in doc file.

 

Hope this will help

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 3 of 7
(4,560 Views)

I would like to center a window of any size into a subpanel of any size too.

 

I would like the subvi be centered into the subpanel so your solutions are not correct.

 

R. Kaszubiak

0 Kudos
Message 4 of 7
(4,529 Views)

Use the Pane's properties. Drop a hidden control at the center of the subpaneled VI and use its position, or create a decoration that defines the boundary of the subpaneled VI and use its width/height to do some math. The calculations and positioning could be in one subVI that gets called at the beginning of the subpaneled VI. Here's a starting point:

subToCenter.png

Message 5 of 7
(4,506 Views)

Thanks for the advice.

 

Indeed, I searched a solution in this direction and I have found it.

 

My function is now modular and generic.

 

R. Kaszubiak

 

 

0 Kudos
Message 6 of 7
(4,493 Views)

Hi R. Kaszubiak,

could you please provide that generic solution?

 

Thanks in advance,

 

Tom

0 Kudos
Message 7 of 7
(4,433 Views)