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.

Lookout

cancel
Showing results for 
Search instead for 
Did you mean: 

how do i change text on the fly

Is there a way to change a text label on the fly?
I want to change the label on a lookout control.
0 Kudos
Message 1 of 2
(2,534 Views)
_____________________________________



Hi,

One old trick is to first not have a label for the Control. Then create an Expression object which evaluates to the desired text (choose Text as Display type), make its background transparent and place it over the Control. You can finally Group these two together (Arrange>>Group menu).

The text of the Expression can be changed with whatever logic you wish.

Hope this helps,

Khalid 🙂



_____________________________________
Message 2 of 2
(2,534 Views)