ni.com is currently undergoing scheduled maintenance.
Some services may be unavailable at this time. Please contact us for help or try again later.
Recoloring cells in my multicolumn listbox is slow (1000 lines x 5-10 columns).
Yes, panel updates are already deferred. Problem is, that the users can add lines at the top of the listbox, and then every line below that has to recolor.
I will test the virtual MCLB that someone mentioned, but perhaps there is the option to change the indicator?
Is a table faster than a MCLB?
A line has only a single color, no need to color for every single cell.
已解决! 转到解答。
I was curious and tested the performance by myself. I think, this is good enough...
Thanks for your testing.
Just for clarifying:
My user adds a new line at the red position. Then I have to recolor every single line after that. And there are sometimes above 1000 lines.
Yes, after reading your first post more carefully I realized my misunderstanding. And now I see, you mean the Font-Color, not the cell (background) color. The performance of this is very poor, see my third testing- VI. I think, GerdW's suggestion is the right way- first recolor all visible lines, then all the others.