LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

center buttons front panel

Solved!
Go to solution

This is probably obvious, but I have a VI set up as Dialog VI and I have two buttons on the front panel. I want to center the buttons horizontally on the front panel. In other words the buttons are side by side and the distance from the left button' left edge to the left border and the distance from the right button's right edge to the right border should be equal.

 

How do I do this?

0 Kudos
Message 1 of 8
(3,458 Views)
Solution
Accepted by topic author nyc_(is_out_of_here)

Hi,

maybe this should do what you want (see attached file) ...

I hope this will solve your problem.

 

Regards,

V-F
0 Kudos
Message 2 of 8
(3,425 Views)

Thanks. That works. Very much like what I do in VB6.

 

I was hoping/wondering that there was one-step way of doing that.

 

0 Kudos
Message 3 of 8
(3,412 Views)

I hope I understand you correctly, but are you wanting to make them the same size, distance, etc?  Why would the buttons need to change if it's a dialogue box?  You can use the align, distribute, and resize objects on the tool bar to set the button position and dimensions.

-----------------------------------------------------------------------------------------
Reese, (former CLAD, future CLD)

Some people call me the Space Cowboy!
Some call me the gangster of love.
Some people call me MoReese!
...I'm right here baby, right here, right here, right here at home
0 Kudos
Message 4 of 8
(3,402 Views)

@MoReese wrote:

I hope I understand you correctly, but are you wanting to make them the same size, distance, etc?  Why would the buttons need to change if it's a dialogue box?  You can use the align, distribute, and resize objects on the tool bar to set the button position and dimensions.


I am trying to do this at design-time.

I have the buttons at the sizes I want. They are the same size.

I can make their top edges align or their bottom edges align.

I am not understanding how the objects on the tool bar can help me center them on the panel.

 

0 Kudos
Message 5 of 8
(3,396 Views)

Those tools won't center the buttons on the fp.  Ramses64's suggestion will work for that.  Another option would be under VI properties/Window Run-time position.  You can adjust your fp position and size (using Window Size) with these properties.  Your VI's fp will open with these settings.

-----------------------------------------------------------------------------------------
Reese, (former CLAD, future CLD)

Some people call me the Space Cowboy!
Some call me the gangster of love.
Some people call me MoReese!
...I'm right here baby, right here, right here, right here at home
0 Kudos
Message 6 of 8
(3,390 Views)

Okay, thanks.

 

In VB2010, centering the two buttons or even 3 or more  is one easy step via a selection in the menu bar.

Message 7 of 8
(3,385 Views)

Hi,

This fonctionnality is missing in Labview, so I wrote it on the Labview Idea exchange HERE

 

Regards,

V-F
0 Kudos
Message 8 of 8
(3,362 Views)