the visible of a stack

Andre Garzia andre at andregarzia.com
Wed Sep 24 23:49:13 EDT 2008


the trick is using intersect()

:D

On Thu, Sep 25, 2008 at 12:12 AM, Dick Kriesel <dick.kriesel at mail.com> wrote:
> Hi, Chipp.  Either of the other two corners of the stack could be the only
> corner within a screenrect too.
>
> -- Dick
>
>
> On 9/24/08 6:01 PM, "Chipp Walters" <chipp at chipp.com> wrote:
>
>> Dangit, didn't get the L again..Sorry for the multiple posts .
>>
>> 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 blendlevel 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
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



-- 
http://www.andregarzia.com All We Do Is Code.



More information about the use-livecode mailing list