[Lazarus] testing virtual TListView in gtk2

Andrew Haines AndrewD207 at aol.com
Wed Dec 2 04:40:23 CET 2009


Andrew Haines wrote:

> I did a small test loading a text file with 50,000+ lines with my custom
> model and the GtkTreeView retrieved the value of each item in the list
> on startup. I assume it's to calculate the size for the scrollbar since
> the height of the listitems is not fixed but can vary per row in the
> GtkTreeView.
> 

Okay I found gtk_tree_view_set_fixed_height_mode which stops the View
from retrieving all of the items values initially.

Regards

Andrew Haines




More information about the Lazarus mailing list