New topic: Displaying picture on IDE
<http://forums.realsoftware.com/viewtopic.php?t=32145> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message Taichi56 Post subject: Displaying picture on IDEPosted: Fri Jan 22, 2010 12:22 pm Joined: Thu Dec 27, 2007 1:41 pm Posts: 126 Alright, I have gone through several things dealing with pictures. I now know how to have a picture of a blue square show up in a table and then take it from the table to show up on the IDE. I have been using the example database with RealBasic and I do not know how they bring in the picture for the product. I looked at this code and cannot figure out how they are using FolderItem.OpenAsPicture. How do I bring in a picture attached to a certain StudentId and have it show in the image well. Getting confused. I have the pictures on the C drive in a folder called Photos. Code: // Handle a picture being dropped on the control dim pic as Picture // Accept Image from File or a Picture Drop if obj.FolderItemAvailable then pic = obj.FolderItem.OpenAsPicture// open file as picture elseIf obj.PictureAvailable then pic = obj.Picture else// unknown drop type return end if // Convert the dropped picture to a thumbnail and display // it in the ImageWell me.Image = GetThumbnailForProduct(pic) 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]
