Hi
I built a demo of different controls to display a [possibly] large amount of data with Treeview, Grid and Listbox. I remember having similar problems <g>. I am not too sure about the details, but I had different path's of loading data [when directly loading into array would break the 64K barrier] and setting the picture only on a few, but always bracketing the currently selected items. When scrolling too far up and down, I reset automatically. Was a PITA to get working correctly just for a dummy, but worked beautifully because even loading when loading a couple of thousend items only about 80 pictures had to be set. When the user scroll up and down the lag of resetting the few pictures was negligable as well.
I also remember that I traced memory consumption, and found that vfp reserved memory for each line a picture was referenced [instead of using a picture cache to reference them like some of the dbi tools do] so only setting pictures to a few lines was not a bad thing <g>.
HTH
thomas
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement