11-13-2023 09:32 AM
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!
Solved! Go to Solution.
11-13-2023 11:16 AM
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…
11-30-2023 08:26 AM
Late response, but at the end we ended up using listbox(es).