layout-and-design-$16.lzx
<canvas height="140" width="100%">
<class name="coloredRect" width="20" height="80" onclick="this.setAttribute('width', this.width+2)"/>
<view x="10" y="10" name="container">
<simplelayout name="slayout" axis="x" spacing="10"/>
<coloredRect bgcolor="red"/>
<coloredRect bgcolor="aqua"/>
<coloredRect bgcolor="yellow"/>
<coloredRect bgcolor="green"/>
<coloredRect bgcolor="blue"/>
</view>
<button x="10" y="110">Lock
<handler name="onclick">
container.slayout.lock();
</handler>
</button>
<button x="70" y="110">Unlock
<handler name="onclick">
container.slayout.unlock();
</handler>
</button>
</canvas>
Cross References
Classes
Named Instances