Getting "top level" stack

Jeanne A. E. DeVoto jeanne at runrev.com
Sat Sep 7 01:19:01 EDT 2002


At 7:36 PM -0700 9/6/2002, James Witte wrote:
>  I want to make a palette with a button to get the name of the top-level
>stack (i.e. the one that's active when the palette's button is clikced)
>I'm currently trying to use line 1 of the openStacks to do this, but
>when I click on the button, the palette itself activates.  Is there any
>way to keep track of the top stack other than inserting an openStack
>message into the message chain?

It sounds like the topStack function is what you need here, e.g.

  on mouseUp
    put the short name of the topStack into field "Stack"
  end mouseUp

--
Jeanne A. E. DeVoto ~ jeanne at runrev.com
Runtime Revolution Limited - The Solution for Software Development
http://www.runrev.com/





More information about the use-livecode mailing list