Can I embed custom images in a stack to use as buttons?

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Chilton
Posts: 10
Joined: Sat Aug 17, 2013 3:52 pm

Can I embed custom images in a stack to use as buttons?

Post by Chilton » Fri Sep 19, 2014 2:27 am

Hi,

I think I'm missing something here. I am trying to create some custom buttons in a stack.

I have imported images using the Image Library stack, into the target stack. But when I do that, it puts a copy of those images in the center of the stack.
If I delete them, they disappear from the Image Library stack.

I tried creating a New Library, and putting them in there, but when I closed and reopened my stack later, they were no longer listed in the library. For that matter, my custom library is missing, too.

But the actual problem I'm trying to solve is embedding custom images in a stack, so I can use them on buttons. How do I do that?

Thanks!
-Chilton

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Can I embed custom images in a stack to use as buttons?

Post by Simon » Fri Sep 19, 2014 2:48 am

Hi Chilton,
Yes, there is a lesson somewhere that is all too complicated and I think you found it!
Some people use a new card to store all their images on, this card is never visited. You just use the image ID for the icons of the buttons.
I just turn the visibility off the image, it'll still show up in the button.

I'm going to be bold and crazy here, just forget about the image library thing, it's just a hassle.

Simon
edit: use File > Import As Control to get your images in the stack.
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Chilton
Posts: 10
Joined: Sat Aug 17, 2013 3:52 pm

Re: Can I embed custom images in a stack to use as buttons?

Post by Chilton » Fri Sep 19, 2014 4:12 am

Okay, I can work with that.

Thanks!

Post Reply