On Sat, 2010-02-27 at 18:23 +0100, Fabien Bodard wrote: > 2010/2/27 Keith Clark <keithcl...@k-wbookworm.com>: > > 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 ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user