LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Text Selection and Font Color Bug?

Hello All,

I am using the Text.SelStart, Text.SelEnd, Text.FontColor properties to
color incoming rs232 strings as they are displayed in a text box.
(I am snooping 2 ports and I need each port to have its own displayed
color.) The problem is that when you add new text to the display it reverts
all the displayed text to the starting color of the first text font. Is
this a bug or some strange feature that I do not understand?

Thanks
0 Kudos
Message 1 of 4
(2,891 Views)
I have re-created your problem, see attached vi. It must be a bug. The only work around that I can see is to re-color your text every time you add to it. What a pain that would be.
- tbob

Inventor of the WORM Global
0 Kudos
Message 2 of 4
(2,891 Views)
The problem is that you rewrite the whole text on the indicator and LabVIEW has no clue that you just append new text and want to keep current colors.

To fix this you have to keep a table of position/attributes and recolor the string each time the string is rewritten.


LabVIEW, C'est LabVIEW

0 Kudos
Message 3 of 4
(2,891 Views)
Thanks for pointing that out. Its a bit frightening that I did not see that
myself.
I think an append method would be a nice feature for the text control.

"Jean-Pierre Drolet" wrote in message
news:506500000005000000755B0100-1075935269000@exchange.ni.com...
> The problem is that you rewrite the whole text on the indicator and
> LabVIEW has no clue that you just append new text and want to keep
> current colors.
>
> To fix this you have to keep a table of position/attributes and
> recolor the string each time the string is rewritten.
0 Kudos
Message 4 of 4
(2,891 Views)