To me it is more logical to test for the existence of the window. There are many situations where I may have a stack open but not have it's window open (e.g. a stack in use). I think 'the windows' should only return stacks which are displaying windows on screen.
I can see how that would appear so... there is one addition that may help: test the 'visible' property of the window.
function windowIsOpen tWindow
return ((there is a window tWindow) AND (the visible of window tWindow))
end windowIsOpen
- Brian
_______________________________________________ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
