Can anyone explain what this event is? And further - what sort of built-in support for caching is already present in a virtual list control? I am in the midst of implementing my own caching logic and would like to take advantage of anything I can.
Also - on a related note - I can't seem to get wxListCtrl.FindItem() to do anything (I am using a virtual list control). If I have a list control with say 8 columns, what is FindItem trying to match on? The first column's text for each item? All 8 columns concatenated together? Any [row][col] text? I'm a little lost and the docs don't say much. Is it even supposed to work for a virtual list control?
It just tells you the range of items that the list ctrl is going to be asking for, to give you a chance to prefetch them all at once if your data source allows for it.
And further - what sort of built-in support for caching is already present in a virtual list control?
None. It is all up to you.
I am in the midst of implementing my own caching logic and would like to take advantage of anything I can.
If you come up with a good strategy and/or data structure for it please write about it in the wiki as I'm sure others will benefit from it.
Also - on a related note - I can't seem to get wxListCtrl.FindItem() to do anything (I am using a virtual list control).
Because your ctrl is virtual. It doesn't have any data items to search since it is all in your own data structure or source.
If I have a list control with say 8 columns, what is FindItem trying to match on? The first column's text for each item?
Yes, if your list was not virtual.
ยทยทยท
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!