Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to use Pictures with ListBox RowSourceType=5?
Message
From
14/12/2004 04:11:10
Thomas Ganss (Online)
Main Trend
Frankfurt, Germany
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00968986
Message ID:
00969016
Views:
8
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
Map
View

Click here to load this message in the networking platform