LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Setting the color (or background color) of a substring

Solved!
Go to solution

Is it possible to set the color of a substring. For example:  If I had the string "Steve is stuck and needs help" and I wanted to change it to become "Steve is stuck and needs help".

 

At present I am trying to modify the text inside of a String Indicator, but am open to suggestions.

 

I have been reading the LV help and it seems to suggest that you can do this using the Text.SelStart and Text.SelEnd properties, but I can't get over that last hurdle that actually updates the string.

 

Regards

 

Steve

0 Kudos
Message 1 of 4
(2,331 Views)
Solution
Accepted by topic author SercoSteveB

After setting the Text.SelStart and Text.SelEnd, use the Text.FontColor to set the color of the selected text. Text -> Font -> Color.

Message 2 of 4
(2,326 Views)

The property you want is Tect -> Font -> Color.

 

0 Kudos
Message 3 of 4
(2,323 Views)

So close.

 

Thanks All

0 Kudos
Message 4 of 4
(2,317 Views)