Page 2 of 2

Re: Resolution independence and button icons

Posted: Tue Dec 03, 2013 5:44 pm
by Klaus
Adrian wrote:But there's nowhere to specify a filename on a button icon ???
Nowhere!

As I wrote:
Yes, you need to set the image id, but it does not matter if that image has been imported or is referenced = its FILENAME set!
See screenshot...

Re: Resolution independence and button icons

Posted: Tue Dec 03, 2013 5:48 pm
by Adrian
Ahhhh *slaps forehead*

So the button references an imported image which in turn references the filename.

Sorry it took you so long to get through my thick skull, but thank-you so much for patience and persistence.

Hopefully someone else will find this useful, too.

Cheers,

Adrian

Re: Resolution independence and button icons

Posted: Tue Dec 03, 2013 5:57 pm
by Klaus
Hi Adrian,
Adrian wrote:So the button references an imported image which in turn references the filename.
Almost :D

The button references any Livecode image object!
The image object itself can be internal/imported or referenced to a file on disk = the filename.

There is already a feature request to expand this technique (resolution independence via "filename" swapping)
to also work with IMPORTED images, but until then we need to use referenced images.

Best

Klaus

Re: Resolution independence and button icons

Posted: Fri Dec 06, 2013 10:18 pm
by Mag
Klaus, I'm pretty sure you have also a solution to use an image as pattern, right? :oops:

Re: Resolution independence and button icons

Posted: Sun Dec 08, 2013 5:02 pm
by Klaus
Hi Mag,
Mag wrote:Klaus, I'm pretty sure you have also a solution to use an image as pattern, right? :oops:
sure, what is the question? 8)


Best

Klaus

Re: Resolution independence and button icons

Posted: Sun Dec 08, 2013 8:41 pm
by Mag
To use an image as pattern for a control and that that image is influenced by the resolution independent system (natural,@2x, etc) :D

Re: Resolution independence and button icons

Posted: Sun Dec 08, 2013 9:59 pm
by Klaus
Never tried it, but should work the SAME as for buttons described above. 8)

Re: Resolution independence and button icons

Posted: Tue Dec 10, 2013 3:47 pm
by Mag
Unfortunately it seems that doesn't work, see the attached image. The image switches to @2x, the pattern doesn't.

Re: Resolution independence and button icons

Posted: Tue Dec 10, 2013 3:48 pm
by Mag
The test stack...

You cannot make another post so soon after your last.

Re: Resolution independence and button icons

Posted: Tue Dec 10, 2013 3:50 pm
by Klaus
Hi Mag,

sounds like a bug to me, please report it here:
http://quality.runrev.com

Thank you!


Best

Klaus