Window layering

Richmond Mathewson richmondmathewson at gmail.com
Wed Jul 19 19:44:53 CEST 2017


Well . . .

My Devawriter Pro has an optional faux backdrop stack (it's called 
"DESKER") with this stackScript:

*on**preOpenStack*

**

***put**((item 3 **of****the****screenRect**) + 20) **into**WIDD*

**

***put**((item 4 **of****the****screenRect**) + 20) **into**HITE*

**

***set****the****width****of**stack "DESKER" **to**WIDD*

**

***set****the****height****of**stack "DESKER" **to**HITE*

**

***set****the****loc****of**stack "DESKER" **to****the****screenLoc*

**

*end**preOpenStack*

****

*on**mouseDown*

**

***toplevel**stack "DWPro"*

**

*end**mouseDown*

****

*on**mouseUp*

**

***toplevel**stack "DWPro"*

**

*end**mouseUp*

So this sort of thing is doable IFF you have a way of determining the 
names of all the stacks you want in front of
your faux backdrop.

While you can use *toplevel* to bring one stack to the forefront there 
is no **backlevel* to send a stack to the back.

*Richmond.*


On 7/19/17 7:59 pm, Mark Waddingham via use-livecode wrote:
> On 2017-07-19 18:32, Richard Gaskin via use-livecode wrote:
>> All this talk about the background has me wondering:  would it be
>> useful to anyone here if we had a way to:
>>
>> - set the layer of a stack below all other LC stacks (opposite
>>   of palette)
>>
>> - set the layer ouf a stack below all other windows (opposite
>>   of systemWindow)
>
> It might be useful - although probably not implementable (judging by 
> how hard it is to get the backdrop to work reliably on all platforms).
>
> Warmest Regards,
>
> Mark.
>



More information about the use-livecode mailing list