开发者

Listbox scroll is slow with scroll wheel

I've got a ListBox with a few thousand entries ( strings ) and scrolling with the mouse wheel is a bit slow, while scrolling with the scrol开发者_StackOverflow社区l bar is very fast. When I rotate the mouse wheel, the list starts scrolling very slowly for about a second, then it's fast. If I rotate again, it happens again. If I scroll for a longer time ( a few seconds ), the ListBox "memorizes" the instructions and keeps scrolling for another few seconds after I stop rotating the wheel.


You could divide the records into intervals of 100. You can modify the event OnScroll and check the bounds and see if it's towards the bottom of the list, then you can load the next 100 and so forth. The same goes for when you go towards the top.

It's kind of ghetto, but IMHO I think it'll be more efficient. Plus it'll require more logic.

You may need a beefier system for this.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜