New topic: Image well and .jpg file
<http://forums.realsoftware.com/viewtopic.php?t=33055> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message Mike Leffler Post subject: Image well and .jpg filePosted: Fri Mar 19, 2010 7:07 am Joined: Mon Aug 04, 2008 8:25 am Posts: 18 I am trying to have the program set the image in an image well when the program starts. It is supposed to read the image from a .jpg file into the image well. The file will be in the same directory as the .exe file. So far I cant seem to get it to work. I'm sure it is something simple but I cant see it. Here is the code. 'Load the program logo file. Dim f as FolderItem dim p as Picture f = new FolderItem("FPlogo.jpg") if f <> Nil then 'Place the logo into the image well. p = f.OpenAsPicture ProgramSettingsWindow.ImageWell1.Image = p else MsgBox "Error FPPMW22: The Program logo could not be set." end if Any ideas would be appreciated. Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 1 post ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
