LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to have multiple text colors in a single string or container?

For my application I want to have a single string
or actually dialog box that I will update with a
new line each time I get new information and
allow the older data to just scroll out of the
box as it fills up. Based on other factors, I
may need to make the line color (or even certain
values in each line) different. I don't see a
way to do that right now. Can this be done?


Sent via Deja.com http://www.deja.com/
Before you buy.
0 Kudos
Message 1 of 3
(1,133 Views)
Highlighted
With a Table string you can change text FG/BG colors for each cell.
That is the only control that allows that.

a écrit dans le message :
80hinm$ov$1@nnrp1.deja.com...
> For my application I want to have a single string
> or actually dialog box that I will update with a
> new line each time I get new information and
> allow the older data to just scroll out of the
> box as it fills up. Based on other factors, I
> may need to make the line color (or even certain
> values in each line) different. I don't see a
> way to do that right now. Can this be done?
>
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
0 Kudos
Message 2 of 3
(1,133 Views)
> For my application I want to have a single string
> or actually dialog box that I will update with a
> new line each time I get new information and
> allow the older data to just scroll out of the
> box as it fills up. Based on other factors, I
> may need to make the line color (or even certain
> values in each line) different. I don't see a
> way to do that right now. Can this be done?
>

Another post pointed out that you can use a table
control. This is the way that BridgeVIEW makes
its alarm display. Another solution is to use
an array of cluster of color numeric and string.
The strings go to the string, and the color goes
into the color numeric. The text itself won't
change color, but there will be a color tab at
the beginning of each line. You will then
p
robably want to use the coloring tool to make
the cluster and other borders transparent.

In either case, write diagram code that updates
the older array of strings with the newest one,
and does the display of the entire buffer.

Greg McKaskle
0 Kudos
Message 3 of 3
(1,133 Views)