Set Substack in the middle of Mainstack

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
alemrantareq
Posts: 203
Joined: Wed Jul 23, 2008 8:46 am

Set Substack in the middle of Mainstack

Post by alemrantareq » Wed Nov 18, 2009 12:33 pm

Hi everybody,
We use the screenloc function to set the stack in the middle of screen. I want to know how to set the substack in the middle of mainstack wherever the mainstack being moved? Thanks in advance...

Paul D
Posts: 116
Joined: Mon May 21, 2007 6:58 pm

Post by Paul D » Wed Nov 18, 2009 2:34 pm

maybe try on the mainstack

Code: Select all

on movestack
set the location of stack "substack" to the location of stack "yourmainstack"
end movestack

Klaus
Posts: 14208
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Post by Klaus » Wed Nov 18, 2009 2:35 pm

Hi,

simple as:
...
set the loc of stack "substack" to the loc of stack "mainstack"
...

If I understood you correctly :-)


Best

Klaus

alemrantareq
Posts: 203
Joined: Wed Jul 23, 2008 8:46 am

Post by alemrantareq » Wed Nov 18, 2009 3:40 pm

Great ! Thanks you a lot . . . :lol:

Post Reply