Hello.
I am tying to combine the sample code from the examples from scrollarea.xml and Draggable Layers.xml.
The key point is that the header area seems to present the layers in an order which is not as programmed using the PARENT, ZORDER and physical positon in the code. See the header above. NOTE: The CYAN (and other harsh colours) colour is to help you see the build up of layers, it is not meant to be this colour!
The scrollable content woks fine. The scroll bars also work on the right side. MY addition of a top bar with title text and close button X do not work as expected because they main body layer appears at the top of the layer stack when the title should appear there. The words MAXWELLS FOOTSTEPS should be under the CYAN LETTER BACKGROUND AND the black container that holds the TITLE.
As constructed the top edge doesn't have a border. I thought initially that the problem was only to do with the border, so I removed it, replacing it with a container called boxtitle, but it's both the border and the scrolled content that are wrong.
<layer name="box" type="container" parent="" align="center" width.normal="800" width.mobile="80%" height="600"
bgcolor="0xFFFFFF" bgalpha="0.9" bgborder="1,5,5,5 0x080808 80"
x="600" y="-600" zorder="79"
bgroundedge="0 0 10 10" bgshadow="0 4 20 0x000000 ">
<layer name="scrollarea"
type="scrollarea" zorder="77"
width="-40" flowchildren="v" childmargin="1"
scrolltype.desktop="smooth"
scrolltype.tablet.or.mobile="inertia"
direction="v"
draggable="true"
mwheel="true"
capturechildren="true"
autoscrollbars="null,vscrollbar_grip,34"
onhover_autoscrolling="false"
onscroll=""
onoverflowchange=""
>
<!-- Scrolling content layers here: -->
<layer name="somecontent" type="text" align="lefttop" html="get:data[navigation-body].content"
htmlautosize="true" width="100%" bgalpha="0.0" css="color:black; font-size:18px;"
onclick="callwith(hotspot[infoOPEN], set(enabled,true);tween(alpha,1); spheretoscreen(ath,atv,fade_to_x,fade_to_y); ); fade_to_x-=stagewidth/2; fade_to_y-=stageheight/2; callwith(layer[box], tween(scale|alpha|ox|oy,('0|0|'+fade_to_x+'|'+fade_to_y)) ); "
/>
</layer>
<!-- Non scrolling layers (scrollbars, buttons, ...) here: -->
<layer name="vscrollbar_bg" type="container"
width.normal="800" width.mobile="80%" height="30"
bgcolor="0x000000" bgalpha="0.9" bgborder="0,1,1,1 0x080808 80"
/>
<layer name="vscrollbar_grip" type="container" align="righttop" width="12" x=" 8" height="8"
bgcolor="0xAAAAAA" bgalpha="0.9" bgroundedge="7" bgcapture="true" />
</layer>
<layer name="boxtitle" PARENT="box" type="container" align="centertop" zorder="72" bgcapture="true"
css="color:#F0F0F0; height:32; background:#00ffff; width:100%" bgalpha="1"
/>
<layer name="boxbuttons" PARENT="box"
style="text" align="centertop" zorder="71"
css="text-align:center; color:#F0F0F0; height:32; background:#00FFFF; width:36; top:-1;
font-family:Arial; font-weight:bold; font-size:22px;" text="yyy TESTINGLAYER yyy"
/>
Display More