From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Align caption label on top of control programmatically

Solved!
Go to solution

Hello to all,

First of all thanks a lot for reading this post and being able to help me.

 

I have this control in the front panel:

captura.PNG

 

Now I change programatically the caption name to:

captura.PNG

 

As you can see, the caption isn't aligned on top of control. So I would like to change the name programatically and then change the position programatically to get this:

captura.PNG

 

How can I do that?

 

Thanks a lot to everyone.

 

0 Kudos
Message 1 of 3
(2,004 Views)
Solution
Accepted by topic author Alvaro.S

Make sure the caption is originally centered on the control AND caption font is set to "justification=centered" and things will fall into place

0 Kudos
Message 2 of 3
(1,995 Views)

Thanks a lot friend!!

It works

0 Kudos
Message 3 of 3
(1,986 Views)