scrolledittext-test.lzx

<canvas>
<include href="incubator/scrolledittext.lzx"/> 
<include href="lz/vscrollbar.lzx"/>
<include href="incubator/newvscrollbar.lzx"/>
<include href="incubator/newvscrollbar_resources.lzx"/>

    <style name="scrollbar_style" basecolor="0xDDDEEB"/>

    <simplelayout axis="x" spacing="6"/>
    
    <view bgcolor="papayawhip" width="240">
      <view y="20" layout="axis: y; spacing: 20">
      <scrolledittext id="set1" x="20" width="200" height="100" vscrollbarclassname="newvscrollbar">this is the fun scrolledittext</scrolledittext>
      <view layout="axis: x; spacing: 20">
        <view layout="axis: y; spacing: 6">
          <button>Wider
          <handler name="onclick">set1.setAttribute("width", set1.width + 20);</handler>
          </button>
          <button>Taller
          <handler name="onclick">set1.setAttribute("height", set1.height + 20);</handler>
          </button>
          <button>Change style
          <handler name="onclick">set1.inp.setAttribute("fontsize", set1.inp.fontsize != 9 ? 9 : 11);</handler>
          </button>
        </view>
        <view layout="axis: y; spacing: 1">
          <text text="${'lineheight: ' + set1.inp.lineheight}"/>
          <text text="${'scroll: ' + set1.inp.scroll}"/>
          <text text="${'maxscroll: ' + set1.inp.maxscroll}"/>
          <text text="${'maxhscroll: ' + set1.inp.maxhscroll}"/>
          <text text="${'hscroll: ' + set1.inp.hscroll}"/>
          <text text="${'yscroll: ' + set1.inp.yscroll}"/>
          <text text="${'scrollheight: ' + set1.inp.scrollheight}"/>
          <text text="${'xscroll: ' + set1.inp.xscroll}"/>
          <text text="${'scrollwidth: ' + set1.inp.scrollwidth}"/>
        </view>
      </view>
      </view>
    </view>

    <scrolledittext x="20" y="20" width="200" height="200">this is the fun scrolledittext with a default scrollbar</scrolledittext>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
* Copyright 2006-2007, 2009 Laszlo Systems, Inc. All Rights Reserved.               *
* Use is subject to license terms.                                            *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@                                                         -->

Cross References

Includes

Named Instances