Image vs Button Icon

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
uelandbob
Posts: 72
Joined: Mon Dec 29, 2014 3:28 pm

Image vs Button Icon

Post by uelandbob » Fri Jan 16, 2015 6:25 pm

When do you use Image Area and when do you use a Button Icon, when you want to display an image on a card?
uelandbob@gmail.com

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: Image vs Button Icon

Post by jmburnod » Fri Jan 16, 2015 7:15 pm

Hi uelandbob
I use images oftenest with filename when I have a lot of images and sometimes imported images
I never use btn just to display an image because you must have this image in a stack (mainstack, substack or other).
Best regards
Jean-Marc
https://alternatic.ch

uelandbob
Posts: 72
Joined: Mon Dec 29, 2014 3:28 pm

Re: Image vs Button Icon

Post by uelandbob » Fri Jan 16, 2015 7:47 pm

Hi Jean-Marc, thank you for your answer :D ,

So you are referencing images instead of importing them. Here is what I suspect, please correct me if I'm wrong

PROs of referencing
- takes much less space in your stack.
- you can change the image without changing the stack

CONs of referencing
- If you send your stack to somebody else, you must the image files also.
- If you move your images the stack will not be able to find them.

The other issue is using an image instead of button (when you have imported the image)

PROs of images
- not so many settings to do in the property inspector
- you can manipulate the image programmatically or with paint tools

CONs of images
- If you use the same image multiple times, an icon would probably take less memory.
uelandbob@gmail.com

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

Re: Image vs Button Icon

Post by Simon » Sat Jan 17, 2015 3:47 am

Setting a button icon to image or color
PRO no coding for highlight states

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Post Reply