General information
Category:
Forms & Form designer
>*** 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.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only