effective topstack
Jeanne A. E. DeVoto
jeanne at runrev.com
Tue May 27 01:07:00 EDT 2003
At 12:34PM -0700 5/26/03, Wilhelm Sanke wrote:
>The "topstack" and "topwindow" functions return the frontmost open stack
>with the lowest mode, which means, if you have two stacks open, the one
>with "cantmodify" set to true will never be the topstack even if it is
>visually in the frontmost window.
>
>Is there another function or way to determine the "effective" topstack
>irrespective of the mode the stack has?
Here's a function:
function activeWindow
-- excludes modal dialogs, palettes, menus
repeat for each line thisWindow in the openStacks
if the mode of stack thisWindow < 4 then return thisWindow
end repeat
return empty
end activeWindow
>As a workaround it is possible to use the "the stacks" and the
>undocumented "the windows" functions
The windows function (aka the openStacks function) is documented in the
Transcript dictionary.
--
Jeanne A. E. DeVoto ~ jeanne at runrev.com
Runtime Revolution Limited - Software at the Speed of Thought
http://www.runrev.com/
More information about the use-livecode
mailing list