Relocate Stack

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
andres
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 68
Joined: Thu Jan 04, 2007 2:24 am

Relocate Stack

Post by andres » Wed Mar 20, 2013 2:32 am

Trying to port a game made in RunRev from desktop to iOS. It is necessary to relocate all elements on the screen at the same time.

I try to set the location of the stack and the location of the card but none work for obvious reasons. Is there any way to relocate all elements without having to group them?

Thanks
Andres

sturgis
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1685
Joined: Sat Feb 28, 2009 11:49 pm

Re: Relocate Stack

Post by sturgis » Wed Mar 20, 2013 2:39 am

Nope. The stack/card take on the dimensions of the screen. If you want to move things around you can either script a handler to change where things are as you need, or as you say group them and move the group. Or, if you have different screens you need, you could separate things to different cards and switch between them.

If you need multiple screens but want to stay on the same card you could group each screens elements and hide or show the group, or set the group position outside the bounds of the screen rect, bringing whichever group is appropriate into the screen.

There may be other ways too. Hard to say what is best without a better idea of what you're trying to accomplish.

andres
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 68
Joined: Thu Jan 04, 2007 2:24 am

Re: Relocate Stack

Post by andres » Wed Mar 20, 2013 1:12 pm

Thank you sturgis

Post Reply