size of a image

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
jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

size of a image

Post by jmburnod » Fri Sep 23, 2016 6:32 pm

Hi All,
I use a grc (width and Height = 77) with a pattern as background of a group
I was surprised that the size of this grc = 0 (or < 1 ?)
Good news because I think use a lot of them, but I wonder what is the best choice between a disable btn with icon or grc with pattern as background of a group ?
Thanks for your advice
Jean-Marc
https://alternatic.ch

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm

Re: size of a image

Post by [-hh] » Fri Sep 23, 2016 7:13 pm

Hi Jean-Marc,
jmburnod wrote:what is the best choice between a disable btn with icon or grc with pattern as background of a group ?
This is certainly more a matter of taste than of usability. I prefer often yet another option for such a situation:
Make the group opaque and set the backpattern of the group.

Hermann

p.s. Probably the (additional) size of the image is 0 if the image is already contained in the stack.
shiftLock happens

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

Re: size of a image

Post by jmburnod » Fri Sep 23, 2016 11:03 pm

Hi Hermann,
Thanks again
I have tried group pattern. It work well except we lost an eventual "roundrect effect".
It seems a group is always a square
Probably the (additional) size of the image is 0 if the image is already contained in the stack.
Yes, that is the case.
Jean-Marc
https://alternatic.ch

Post Reply