Image as stack background

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
ukimiku
Posts: 101
Joined: Thu Oct 22, 2009 10:45 am

Image as stack background

Post by ukimiku » Tue Nov 03, 2009 10:11 pm

Hi all,

I am working my way through the tutorials. The RunRev documentation says about using an image as a stack background:
This image can then be copied into the background group using the
edit group control.
Now I have imported an image onto an otherwise empty stack, grouped it with the Group button of the IDE (with itself, it would seem), and thus was able to access the "Edit group" command in the "Object" menu. But I can't see a way to attach that image to the background of the stack. It always hovers above it, I can move it around, move it partly out of the stack window... How do I assign the background of a stack a custom image?

Thanks,

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4172
Joined: Sun Jan 07, 2007 9:12 pm

Post by bn » Tue Nov 03, 2009 10:32 pm

ukimuki,
what you say you want is to set an image as the background image of a stack. The description you cite is how to add an image to a background group.

You would set an image as a background like this.
Import any image you want via the import control. Now open the property inspector and look for the id of that image. Click at the stack so that the property inspector show the properties of the stack. Then in the property inspector you choose colors and patterns. Click on Background pattern, (the left control). A box opens and you can choose patterns. On the bottom left of that is a window with id before it. You type the id of the image you imported. Or you choose "This stack" from the menu button in the box and there should be your image to click on.
Than you ok and the background picture of your stack is the picture you imported. The same for a card, btw.
I hope this was clear enough.
regards
bernd

ukimiku
Posts: 101
Joined: Thu Oct 22, 2009 10:45 am

Post by ukimiku » Tue Nov 03, 2009 10:46 pm

Hi Bernd,

many thanks. Your explanation was very clear indeed. When I browsed the property inspector, I didn't think that my image would fit either "color" or "pattern". But it works, great.

Could I ask you one more thing? Since now my stack has the circle as its background and itself has assumed circle shape by another trick from the documentation, I cannot move the stack around anymore since there are no more window controls I could click on and drag.

Again, thanks a lot!

Regards

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4172
Joined: Sun Jan 07, 2007 9:12 pm

Post by bn » Tue Nov 03, 2009 10:53 pm

Ukimuki,

in the new RevOnline there is a sample stack from Ben Beaumont "Move stack script" that shows how to move a stack whose windowshape has been set. Just search for either Ben or move stack script.
regards
Bernd

ukimiku
Posts: 101
Joined: Thu Oct 22, 2009 10:45 am

Post by ukimiku » Tue Nov 03, 2009 11:03 pm

Bernd, thanks, I will. Regards

Post Reply