Set Substack in the middle of Mainstack

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

Moderators: Klaus, FourthWorld, heatherlaine, 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 »

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 »

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: 14325
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Post by Klaus »

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 »

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