Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I display a bmp next to some ListBox rows?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00117892
Message ID:
00117904
Vues:
22
>*** Note that they use parens and not brackets. When I use brackets, an error is not generated, but nothing else happens. Perhaps I have to set some other properties?

I doubt it. I can't explain the behavior you're seeing because when I use parentheses I do not get an error. What exact error do you get?

>In my listbox init method, this works on all rows:
> This.Picture = "c:\vcs4.0\gui\bitmaps\clock.bmp"
>
>But this has no effect:
>
>This.Picture[1] = "c:\vcs4.0\gui\bitmaps\stop.bmp"

The list does have at least 1 item when you do this, right? I just did the following code in the command window and it worked as I expected.

_screen.addobject("MyList", "ListBox")
_screen.MyList.Visible = .t.
_screen.MyList.AddItem("Fred")
_screen.MyList.AddItem("Barney")
_screen.MyList.AddItem("Wilma")
_screen.MyList.AddItem("Dino")
_screen.MyList.AddItem("Betty")
_screen.MyList.Picture = getfile()
_screen.MyList.Picture(3) = getfile()

You can select any valid BMP file when the GETFILE() dialogs come up.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform