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
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only