03-18-2019 04:36 AM
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.
Solved! Go to Solution.
03-18-2019 04:58 AM
03-18-2019 05:42 AM
Thank you.
I already mentioned that I will try the virtual MCLB, but perhaps there is an easier way.
03-18-2019 05:48 AM
03-18-2019 05:52 AM
03-18-2019 06:13 AM
03-18-2019 06:16 AM
Yes, it is a possible solution, but perhaps there is an easier way.
That was the whole purpose of my post.
03-18-2019 08:48 AM
I was curious and tested the performance by myself. I think, this is good enough...
03-18-2019 09:08 AM
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.
03-18-2019 10:57 AM
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.