views-tutorial-$8.lzx

<canvas height="300" width="100%">
  <window x="20" y="20" width="200" height="250" title="Simple Window" resizable="true">
    <simplelayout axis="y" spacing="10"/>
    <view bgcolor="#ff0000" width="${immediateparent.width}">
      <simplelayout axis="x" spacing="5"/>
      <button>1</button>
      <button>2</button>
      <button>3</button>
    </view>
    <text>Here is some text.</text>
    <text>I could ramble for hours.</text>
    <button x="${(immediateparent.width / 2) - (this.width / 2)}" onclick="this.setAttribute('width', this.width + 10);">
      My Button
    </button>
  </window>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
* Copyright 2008, 2011 Laszlo Systems, Inc.  All Rights Reserved.             *
* Use is subject to license terms.                                            *
* X_LZ_COPYRIGHT_END ****************************************************** -->

Cross References