Bringing a picture on top of another

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Mag
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 802
Joined: Fri Nov 16, 2012 10:51 pm

Bringing a picture on top of another

Post by Mag » Thu Jan 03, 2013 8:47 pm

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" 

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

Re: Bringing a picture on top of another

Post by jmburnod » Thu Jan 03, 2013 9:20 pm

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
https://alternatic.ch

Mag
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 802
Joined: Fri Nov 16, 2012 10:51 pm

Re: Bringing a picture on top of another

Post by Mag » Thu Jan 03, 2013 9:27 pm

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...

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

Re: Bringing a picture on top of another

Post by jmburnod » Thu Jan 03, 2013 11:07 pm

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
https://alternatic.ch

Mag
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 802
Joined: Fri Nov 16, 2012 10:51 pm

Re: Bringing a picture on top of another

Post by Mag » Thu Jan 03, 2013 11:27 pm

Yes, indeed! :D :) :D

Post Reply