LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Multicolors in string?

I can make sections of text in a string indicator different colors
manually but I can't figure out a way to do it programmatically. The
goal here is to highlight two sections of a long text string by making
them different colors while leaving the rest black. Any ideas??

Tom
0 Kudos
Message 1 of 4
(2,773 Views)
Use a property node and select the text you want to change the color of by setting the Text.SelStart and Text.SelEnd properties, then have a third input to the same property node with the Text.FontColor property. Write the color you want to that.
Message 2 of 4
(2,773 Views)
You must select the text first.
Property node -> text -> Select -> Start
Property node -> text -> Select -> End

Then...
Property node -> text -> Font -> color


It doesn't look like you can change the background for individual characters though.

Hope that helps.

Cheers

"Tom Whitaker" wrote in message news:pqma205tpob3nvqdsbje59vtk0520q79po@4ax.com...
> I can make sections of text in a string indicator different colors
> manually but I can't figure out a way to do it programmatically. The
> goal here is to highlight two sections of a long text string by making
> them different colors while leaving the rest black. Any ideas??
>
> Tom
0 Kudos
Message 3 of 4
(2,773 Views)
Martin,

Thanks, that did it. I was using
Property node -> text -> text colors -> text color
and the whole string was turning color (even after selection).

Thanks again.

Tom


On Sun, 08 Feb 2004 00:53:42 GMT, "Martin Riddle"
wrote:

>You must select the text first.
>Property node -> text -> Select -> Start
>Property node -> text -> Select -> End
>
>Then...
>Property node -> text -> Font -> color
>
>
>It doesn't look like you can change the background for individual characters though.
>
>Hope that helps.
>
>Cheers
>
>"Tom Whitaker" wrote in message news:pqma205tpob3nvqdsbje59vtk0520q79po@4ax.com...
>> I can make sections of text in a string indicator different colors
>> manually but I can't figure
out a way to do it programmatically. The
>> goal here is to highlight two sections of a long text string by making
>> them different colors while leaving the rest black. Any ideas??
>>
>> Tom
>
0 Kudos
Message 4 of 4
(2,773 Views)