LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Multicolumn Listbox slow

Solved!
Go to solution

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.

 

 

0 Kudos
Message 1 of 12
(3,394 Views)

Hi Tesla,

 

to increase speed you only need to color the lines visible to your user.

(I guess the user cannot see all 1000 lines at once?)

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 12
(3,388 Views)

Thank you.

I already mentioned that I will try the virtual MCLB, but perhaps there is an easier way.

0 Kudos
Message 3 of 12
(3,374 Views)

Hi Tesla,

 

I never heard of a "virtual MCLB" which "somebody mentioned".

Do you mind to provide links or example VIs?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 12
(3,371 Views)

Hi Tesla,

 

I already mentioned that I will try the virtual MCLB, but perhaps there is an easier way.

That VirtualMCLB is using the same approach of only coloring the cells visible to the user as I suggested before…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 12
(3,362 Views)

Yes, it is a possible solution, but perhaps there is an easier way.

That was the whole purpose of my post.

0 Kudos
Message 7 of 12
(3,357 Views)

I was curious and tested the performance by myself. I think, this is good enough...

Greets, Dave
0 Kudos
Message 8 of 12
(3,339 Views)

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.

 

recoloring.jpg

0 Kudos
Message 9 of 12
(3,328 Views)

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.

 

Greets, Dave
0 Kudos
Message 10 of 12
(3,320 Views)