LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Expanding string with keeping the coloring?

Solved!
Go to solution

Hi,

 

I have a string indicator supposed to display rows in different color based on their content like a terminal display. There are new lines arriving frequently so the contents of indicator need to be refreshed with the new lines added to the bottom with the right coloring.

 

The problem I see is that if I concatenate the current content of the indicator with the new lines and write it to the indicator the previously applied formating gets lost, all lines are displayed with the same color.

 

Recoloring everytime is not an option because it is a very slow process even with defering the panel updates. I found this 14 year old forum post describing the same issue and I'm wondering if there is a solution by now.

 

(Yes I can do this with a listbox but I'm wondering if I can expand the content of an indicator with keeping the previous formating)

 

Thanks!

0 Kudos
Message 1 of 3
(512 Views)
Solution
Accepted by topic author 1984

Hi 1984,

 


@1984 wrote:

I have a string indicator supposed to display rows in different color based on their content like a terminal display. There are new lines arriving frequently so the contents of indicator need to be refreshed with the new lines added to the bottom with the right coloring.

 

(Yes I can do this with a listbox but I'm wondering if I can expand the content of an indicator with keeping the previous formating)


That would be my suggestion: use a listbox!

Each row is an element of an array and you can easily change (text) colors for each row in a listbox - much easier than handling string subsets by their indices…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 3
(476 Views)

Late response, but at the end we ended up using listbox(es).

0 Kudos
Message 3 of 3
(382 Views)