the visible of a stack

Chipp Walters chipp at chipp.com
Wed Sep 24 20:59:17 EDT 2008


Hmmm. You wrote:
All stacks are included regardless of their visibility.

Is that true? If so, then my function needs to include the line:
if not the vis of stack pStack then return false

I've included it below.

function isStackCurrentlyVisibleOnAnyMonitor pStack
  --> pStack IS THE SHORT NAME OF STACK
  set wholematches to true
  if pStack is among the lines of windows() then
     if not the vis of stack pStack then return false
     if the blendlever of stack pStack = 100 then return false
     repeat for each line L in the screenrects
        if the topLeft of stack pStack is within L then return true
        if the bottomright of stack pStack is within L then return true
     end repeat
     return false
  else
     return false
  end if
end isStackCurrentlyVisibleOnAnyMonitor



More information about the use-livecode mailing list