LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Windows resize keep control in center

I have created a frontpanel with two string control/indicator there follows the windows size, no problem. (see SizeTest.vi)

 

The problem is that in the lower panel, I have a stop button, that I would like to have centered in that panel.

Is there any easy method to do this, or will I have to programely move the origin for the lower panel? 

0 Kudos
Message 1 of 4
(354 Views)

Unless new functions have been introduced in newest releases (but I don't think so), you need to center the button programatically.

There is a dedicated This vi > Panel resize event.

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 2 of 4
(325 Views)

R-click the splitter -> Lower pane -> Pane Sizing -> Scale objects

Yamaeda_0-1718030671820.png

 

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 3 of 4
(282 Views)

I don't want to scale my objects in the lower panel.

Just keep the panel in center.

 

Since there is no "Origin Sticks to Center" option i LV, I have to move the lower panels origin with some code instead.

0 Kudos
Message 4 of 4
(262 Views)