How to add images to Image Library: This Stack (Button Icon)
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
How to add images to Image Library: This Stack (Button Icon)
Hi,
How can I add images to the Button's Icon - Image Library: This Stack? I searched the doc and cannot find an anwer.
Thanks and best regards
How can I add images to the Button's Icon - Image Library: This Stack? I searched the doc and cannot find an anwer.
Thanks and best regards
Alex
Nice to meet all of you.
Nice to meet all of you.
Hi Klaus,
Actually I did notice that all images that used in the stack listed here. However all images must be linked with the source files. In other words, when I removed or renamed the source images, the images in the stack and Image Library disappeared. I tried the "Preload in memory" but not working.
Take your amazing stack "The taming of the animated Gif" as an example, all images do not need to link with the source files. That's why I wonder if the images can be added and saved to the Image Library with the stack.
How can the images in the Image Library do not need to link with the source files?
Best regards
Actually I did notice that all images that used in the stack listed here. However all images must be linked with the source files. In other words, when I removed or renamed the source images, the images in the stack and Image Library disappeared. I tried the "Preload in memory" but not working.
Take your amazing stack "The taming of the animated Gif" as an example, all images do not need to link with the source files. That's why I wonder if the images can be added and saved to the Image Library with the stack.
How can the images in the Image Library do not need to link with the source files?
Best regards
Alex
Nice to meet all of you.
Nice to meet all of you.
-
- VIP Livecode Opensource Backer
- Posts: 977
- Joined: Sat Apr 08, 2006 7:47 am
- Contact:
Rather than referencing external image files, you can also import these images - in the Rev IDE, go to the File menu, then to the Import as control submenu, and pick the option Image file...
All imported images are available in your stack's Image Library, and can be used as button icons, background patterns, etc. As a bonus, you can't forget them when you build your final standalone application.
Hope this helped,
Jan Schenkel.
All imported images are available in your stack's Image Library, and can be used as button icons, background patterns, etc. As a bonus, you can't forget them when you build your final standalone application.
Hope this helped,
Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com
www.quartam.com
Hmmm,
perhaps, I'm not "bon" enough for that "bonus" you mentioned before, but: I've imported a PNG image which I want to use as stack background texture and it does not show up in the final stand-alone application.
Everything works fine, though, if I start the .rev file (I verified the operation by moving the original image file away) I even moved the .rev to a different machine: everything was fine...but the stand-alone application simply ignores the applied texture
I'm using 2.9.0 and built a WinXP stand-alone on a WinXP machine. (perhaps I should check other platforms as well)
Do you have any idea what might go wrong?
Thanks in advance for any help!
perhaps, I'm not "bon" enough for that "bonus" you mentioned before, but: I've imported a PNG image which I want to use as stack background texture and it does not show up in the final stand-alone application.
Everything works fine, though, if I start the .rev file (I verified the operation by moving the original image file away) I even moved the .rev to a different machine: everything was fine...but the stand-alone application simply ignores the applied texture

I'm using 2.9.0 and built a WinXP stand-alone on a WinXP machine. (perhaps I should check other platforms as well)
Do you have any idea what might go wrong?
Thanks in advance for any help!
Kind regards,
Andreas Rozek
Andreas Rozek
Dear Andreas,
The operating system on which you build the standalone doesn't affect the inclusion of images in your project.
If you made your stack on machine A and build it on machine B, you have to make sure that the standalone builder can find all files. Particularly if you use absolute file paths, this can be a problem.
The easiest way to avoid these problems is by importing the image the way Jan describes.
Best regards,
Mark
The operating system on which you build the standalone doesn't affect the inclusion of images in your project.
If you made your stack on machine A and build it on machine B, you have to make sure that the standalone builder can find all files. Particularly if you use absolute file paths, this can be a problem.
The easiest way to avoid these problems is by importing the image the way Jan describes.
Best regards,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Mark,
you are certainly right. My problem, however, is different: a .rev file built on machine A does not produce a proper standalone on the same machine, while - after transfering the .rev file from machine A to machine B - the other machine built it properly. This "prooves", that the images have been properly imported before...
What makes it even more interesting is, that machine B runs a different operating system than machine A, but builds properly for the latter
you are certainly right. My problem, however, is different: a .rev file built on machine A does not produce a proper standalone on the same machine, while - after transfering the .rev file from machine A to machine B - the other machine built it properly. This "prooves", that the images have been properly imported before...
What makes it even more interesting is, that machine B runs a different operating system than machine A, but builds properly for the latter

Kind regards,
Andreas Rozek
Andreas Rozek
Dear Andreas,
Nothing is being proved, except that the picture is available on one machine, but not on another. I guess you imported the picture files as referenced controls rather than embedded controls.
Best,
Mark
Nothing is being proved, except that the picture is available on one machine, but not on another. I guess you imported the picture files as referenced controls rather than embedded controls.
Best,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode