Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>*** 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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement