Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to use Pictures with ListBox RowSourceType=5?
Message
De
14/12/2004 04:11:10
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00968986
Message ID:
00969016
Vues:
10
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
Fil
Voir

Click here to load this message in the networking platform