Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Different images in list object
Message
 
 
À
11/02/1999 23:10:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00186799
Message ID:
00186891
Vues:
19
In my listbox, I either had the picture or I didn't. I didn't have multiple images, so I didn't run into that.

If you need a lot of different pictures, try the one in the files section. I think it's called "bblistview" or something like that. It allows you to do all sorts of fancy things.

-Michelle

>I've been playing around with it, and have gotten close, but it seems REALLY flaky. I'm trying to get dynamic images for a bound listbox. Here's what I've found:
>
>* Syntax is: ListBox1.Picture[i] = "image", where "i" is the row in the list
>* The images are fine, until you change rows, then they all reset to the 1st pic - this is not the case if the list is not bound!
>* You have to reassign the image when you change to a new row - something like: This.Picture[This.ListIndex] = cImageArray[This.ListIndex] in the When() - this keeps the images from resetting.
>* The easiest thing to do is to reassign all images anytime you change rows, because of the flakiness of the control. But, this slows down up/down arrowing.
>* Don't ask me why, but putting code in the message() event of the listbox to reassign the image seems to work better than relying on the when().
>
>
>If anybody has any more specifics on how this thing works, I'd love to see them. I've found alot out by trial and error (mostly error), but don't have anything close to robust. But, I am sure surprised this behaviour hasn't been fixed by MS yet. I know it's been known for a while. Can't find anything in the KB though.
>
>
>>>How do you control the picture objects in a list so that each row can (potentially) have a different picture?
>>>
>>>It seems like there used to be a bug that this did not work if the list was bound. Is this still a bug?
>>>
>>>
>>>Bob
>>
>>
>>You have to add items to the list manually. You can't use a cursor or anything. I can't remember the syntax, and I don't have the code, but I remember that you access the picure property for each row and set it to what you want.
>>
>>-Michelle
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform