ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

取消
显示结果 
搜索替代 
您的意思是: 

Multicolumn Listbox slow

已解决!
转到解答

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 项奖励
1 条消息(共 12 条)
5,386 次查看

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 项奖励
2 条消息(共 12 条)
5,380 次查看

Thank you.

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

0 项奖励
3 条消息(共 12 条)
5,366 次查看

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 项奖励
4 条消息(共 12 条)
5,363 次查看
0 项奖励
5 条消息(共 12 条)
5,360 次查看

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 项奖励
6 条消息(共 12 条)
5,354 次查看

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

That was the whole purpose of my post.

0 项奖励
7 条消息(共 12 条)
5,349 次查看

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

Greets, Dave
0 项奖励
8 条消息(共 12 条)
5,331 次查看

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 项奖励
9 条消息(共 12 条)
5,320 次查看

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 项奖励
10 条消息(共 12 条)
5,312 次查看