Page 1 of 1

image library

Posted: Wed Jan 26, 2011 11:55 am
by fredigertsch
Hi there
How can I include pictures in the application? In my program I set the filename of the images, but when I save the standalone application it needs the imagefiles outside. Thanks for any help.

Best, Fredi

Re: image library

Posted: Wed Jan 26, 2011 12:26 pm
by jmburnod
Hi Fredi,

Look at the "import as control" of the file menu to import the pictures
If you want have the picture outside you must build the path of the folder it contains the pictures
Be careful, the path is different for a stack or for a standalone (the standalone is a package)

I hope this help

Best

Jean-Marc

Re: image library

Posted: Wed Jan 26, 2011 12:53 pm
by fredigertsch
Hi Jean-Marc

Thanks. And how can I put the same image in a other image-object. Bevor I have done this with:

set the filename of image "bild1" to the filename of image "leer" on card "resources"

Fredi

Re: image library

Posted: Wed Jan 26, 2011 1:02 pm
by jmburnod
Hi Fredi,

Code: Select all

set the filename of image "bild1" to the filename of image "leer" on card "resources"
Yes for a picture with a filename
If the picture is imported you can use

Code: Select all

set the text of image "bild1" to the text of image "leer" on card "resources"
You can check the "import" entry of the dictionnary for infos about diffrents types of images

All the best

Jean-Marc

Re: image library

Posted: Wed Jan 26, 2011 1:41 pm
by Klaus
Hi all,

instead of copying an image from one card to another, I always use buttons (disabled/no border/showname = false)
and set their ICON to the ID of the original images!

Noone will tell the difference and this will save some resources :)


Best

Klaus