Page 1 of 1

Bringing a picture on top of another

Posted: Thu Jan 03, 2013 8:47 pm
by Mag
I'm working on an application that opens images. I would like to put a logo on top of another image before sharing it. Unfortunately, since the image logo was put on the card before the new one, the logo stays below the image and you can see it. Does anyone know a way to bring the logo image on top of another?

Would be nice if there was a handler like this pseudo-code (similar to use the appropriate menu item in authoring):

Code: Select all

bring to front image "logoShare.png" 

Re: Bringing a picture on top of another

Posted: Thu Jan 03, 2013 9:20 pm
by jmburnod
Hi Mag
You can change the layer of an object if it is NOT in a group
To the top:

Code: Select all

set the layer of image "logoShare.png" to top
To a specific layer:

Code: Select all

set the layer of image "logoShare.png" to 10
Best regards
Jean-Marc

Re: Bringing a picture on top of another

Posted: Thu Jan 03, 2013 9:27 pm
by Mag
Thank you so much Jean-Marc! :D

PS
I'm beginning to think that there are no things that you can't do with LiveCode...

Re: Bringing a picture on top of another

Posted: Thu Jan 03, 2013 11:07 pm
by jmburnod
Hi Mag,
I'm beginning to think that there are no things that you can't do with LiveCode...
We are lucky with LiveCode and the LiveCoders of this forum :D

Re: Bringing a picture on top of another

Posted: Thu Jan 03, 2013 11:27 pm
by Mag
Yes, indeed! :D :) :D