08-03-2011 03:27 PM
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?
Solved! Go to Solution.
08-04-2011 02:52 AM
Hi,
maybe this should do what you want (see attached file) ...
I hope this will solve your problem.
Regards,
08-04-2011 08:08 AM
Thanks. That works. Very much like what I do in VB6.
I was hoping/wondering that there was one-step way of doing that.
08-04-2011 08:59 AM
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.
08-04-2011 09:16 AM
@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.
08-04-2011 09:33 AM
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.
08-04-2011 10:54 AM
Okay, thanks.
In VB2010, centering the two buttons or even 3 or more is one easy step via a selection in the menu bar.
08-05-2011 12:53 AM
Hi,
This fonctionnality is missing in Labview, so I wrote it on the Labview Idea exchange HERE
Regards,