How to get rid of TListBox vertical scroll limit?

后端 未结 2 793
旧巷少年郎
旧巷少年郎 2021-02-15 14:25

I\'ve implement a log viewer using a TListBox in virtual mode.

It works fine (for all the code I wrote), displays the content as expected (I even added an horizontal scr

2条回答
  •  情书的邮戳
    2021-02-15 15:21

    For a custom log viewer I wrote, I use a TListView in virtual mode, not a TListBox. Works great, no 32K limits, no need to fiddle with SetScrollInfo() at all. Just set the Item.Count and the rest is handled automatically. It even has an OnDataHint event that can be used to optimize data access by letting you load only the data that the TListView actually needs. You don't get that with a TListBox.

提交回复
热议问题