Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to use Pictures with ListBox RowSourceType=5?
Message
 
À
14/12/2004 04:11:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00968986
Message ID:
00969037
Vues:
9
Hi Thomas

I had thought of doing what you suggested but wanted to avoid the work of having to update the pictures for the displayed items. Maybe I will have to go that route anyway.

I had previous developed a version of a listbox that used virtual loading so that no matter how big the table it loaded only enough items to fill the visible portion of the list. This method works fine but the scroll bar does not work as expected. I was hoping that VF9 would allow me to turn off the scroll bar completely but alas that feature has been removed.

Thanks,
Simon


>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
Simon White
dCipher Computing
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform