LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Align button where the 1st object is static and the 2nd or rest will align towards the static 1st object.

Solved!
Go to solution

Hi there. 

 

So basic questions: 

 

How do I align a block, where the first one do not move and the 2nd one adjust to the 1st one? 

E.g. below I would like my "Disconnect" button to be aligned with the "PLC IP address". 

ChristianLiinHansen_2-1632775279315.png

 

But when I go in and select them both, and selecting "Vertical alignment", I get this result:

ChristianLiinHansen_3-1632775301449.png

What I would like is to have the "Disconnect" button static, so that the bottons do not move. I tried to "lock" them, but then I was not able to align the string "localhost" box to the botton. 

 

 

0 Kudos
Message 1 of 5
(1,140 Views)

Hi Christian,

 


@ChristianLiinHansen wrote:

E.g. below I would like my "Disconnect" button to be aligned with the "PLC IP address". 

ChristianLiinHansen_2-1632775279315.png


It is already aligned!

How do you want to align them?

Which alignment mode did you use? (top, middle, bottom?)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(1,108 Views)

@GerdW wrote:

Hi Christian,

 


@ChristianLiinHansen wrote:

E.g. below I would like my "Disconnect" button to be aligned with the "PLC IP address". 

ChristianLiinHansen_2-1632775279315.png


It is already aligned!

How do you want to align them?

Which alignment mode did you use? (top, middle, bottom?)


Hi GerdW. 

 

Well, I want them to be aligned vertical centered. Like below, which I did by manual moving it a bit down. 

ChristianLiinHansen_0-1632810059623.png

 

I used this function: 

ChristianLiinHansen_1-1632810130882.png

 

 

 
0 Kudos
Message 3 of 5
(1,104 Views)
Solution
Accepted by ChristianLiinHansen

Hi Christian,

 


@ChristianLiinHansen wrote:

Well, I want them to be aligned vertical centered. Like below, which I did by manual moving it a bit down. 

ChristianLiinHansen_0-1632810059623.png


  1. Hide the string control label
  2. Select both the button and the string, then align them at center.
  3. Move both (button+string) to the same frontpanel grid as your Connect button…

(When designing an UI I always align elements along the grid as much as possible!)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 5
(1,099 Views)

Also be aware that when using front panel objects from the Silver category, there's some manual effort required if you want to get the alignment "pixel perfect". This is due to the fact that the bounding area of Silver objects is too big on the bottom and right, as you may have noticed.

Redhawk
Test Engineer at Moog Inc.

Saying "Thanks that fixed it" or "Thanks that answers my question" and not giving a Kudo or Marked Solution, is like telling your waiter they did a great job and not leaving a tip. Please, tip your waiters.

0 Kudos
Message 5 of 5
(1,085 Views)