[Gambas-user] Picturebox

Keith Clark keithclark at ...2185...
Sat Feb 27 21:39:17 CET 2010


On Sat, 2010-02-27 at 18:23 +0100, Fabien Bodard wrote:
> 2010/2/27 Keith Clark <keithclark at ...2185...>:
> > I cannot, for the life of me, get a picture box to work.  I've googled
> > to death and I cannot find an example that works.
> >
> > Here is what I have so far:
> > $Image = Image.Load("/home/keithclark/" & ISBN.text & ".jpg")
> > BookPictureBox.Picture.Image = $Image
> 
> you can't set the picture image property .
> http://gambasdoc.org/help/comp/gb.qt/picture/image
> It's a read only property !
> 
> There is two way to do that :
> 
> BookPictureBox.Picture = $Image.Picture
> 
> or more shortly and logical :
> 
> BookPictureBox.Picture = Picture["/home/keithclark/" & ISBN.text & ".jpg"]
> 
> the last is the good way
> 
> 
Worked perfectly, thanks.

Keith






More information about the User mailing list