Images

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
hadi
Posts: 1
Joined: Thu Dec 11, 2008 4:44 pm

Images

Post by hadi » Thu Dec 11, 2008 5:03 pm

I have a page that has an image box on the right and about eight small pictures on the left. I want to click on or rollover one of the small images and for it to appear inside the image box

Please Help Me

Thank you 8)

Tim
Posts: 29
Joined: Wed Oct 31, 2007 12:56 pm

Post by Tim » Thu Dec 11, 2008 6:00 pm


cogollo
Posts: 6
Joined: Wed Nov 19, 2008 8:49 pm

Post by cogollo » Sat Feb 07, 2009 5:59 pm

Hello.

I need help to do the same, load an image into a image object. I have readed the tutorial, but the example doesn't work to me; somebody could help me?

I need a to load images from the HD and show them into an image object. Is this sentence correct?

Code: Select all

set the imageSource of image "OriginalImage" from file "c:\image.bmp"
Where "OriginalImage" is an image object from the GUI.

Thanks for your time.

Janschenkel
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 977
Joined: Sat Apr 08, 2006 7:47 am
Contact:

Post by Janschenkel » Sun Feb 08, 2009 11:52 am

Loading from a file to display in an image control is a lot easier - just set the fileName property of the image control.

Code: Select all

set the fileName of image "MyImage" to "c:/someimage.jpg"
The only time you need the imageSource property is if you want to embed an image inside a field object's text.

HTH,

Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com

Post Reply