LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Saving Text With Colors from 'Simple String' Control

I have a 'Simple String' Control on the Panel (LV6.1).
The Text may be of different colors. I want to be able to save this text programmatically so it can be restored next time the application is run.
It seems reading the Control's value from terminal, local variable or property node does not include the color information.
I could maybe get the color of each individual character using the color properties but I would presumably have to scan each character one at a time. This could be a problem since the text is changing quite rapidly.

Is there an easier and faster way?
Regards,

Dave.
0 Kudos
Message 1 of 2
(2,213 Views)
Hi,

Scanning each character is the only way to get the color information from a
string ref.

How are the colors changed? Maybe you can use this information directly to
get the color info.

Regards,

Wiebe.

"RevaD" wrote in message
news:506500000008000000BC620000-1031838699000@exchange.ni.com...
> I have a 'Simple String' Control on the Panel (LV6.1).
> The Text may be of different colors. I want to be able to save this
> text programmatically so it can be restored next time the application
> is run.
> It seems reading the Control's value from terminal, local variable or
> property node does not include the color information.
> I could maybe get the color of each individual character using the
> color properties but I would presumably have to scan
each character
> one at a time. This could be a problem since the text is changing
> quite rapidly.
>
> Is there an easier and faster way?
> Regards,
>
> Dave.
0 Kudos
Message 2 of 2
(2,213 Views)