How Do I Preposition A Modal Stack

Ken Ray kray at sonsothunder.com
Tue May 23 14:31:11 EDT 2006


On 5/23/06 10:37 AM, "Rob Cozens" <rcozens at pon.net> wrote:

> What must I do to open a modal stack at a specific (non-centered)
> position?

Yes, modal windows automatically center themselves over the topmost
non-modal window. Here's what I do:

  set the style of stack "MyModal" to toplevel
  set the loc of stack "MyModal" to 100,100
  open inv stack "MyModal"
  set the style of stack "MyModal" to modal
  show stack "MyModal"

It's important to make sure you first set the style to topLevel otherwise
the modal style will "stick" and you won't be able to reposition it.


Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: kray at sonsothunder.com




More information about the use-livecode mailing list