lzcombobox-test.lzx

<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
* Copyright 2005-2006, 2008 Laszlo Systems, Inc. All Rights Reserved.               *
* Use is subject to license terms.                                            *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@                                                          -->
<canvas>
    <include href="../lzcombobox.lzx"/>
    <include href="../lzeditcombobox.lzx"/>

    <dataset name="dsHours">
      <item value="1">1</item>
      <item value="2">2</item>
      <item value="3">3</item>
      <item value="4">4</item>
      <item value="5">5</item>
      <item value="6">6</item>
      <item value="7">7</item>
      <item value="8">8</item>
      <item value="9">9</item>
      <item value="10">10</item>
      <item value="11">11</item>
      <item value="12">12</item>
    </dataset>
    
    <lzcombobox width="80" shownitems="3" itemdatapath="dsHours:/item">
      <handler name="onselect" args="dptr">
          Debug.write('value:', this.value);
          Debug.write('datapointer:', dptr);
      </handler>
    </lzcombobox>
    
    <lzeditcombobox width="80" shownitems="3" itemdatapath="dsHours:/item">
      <handler name="onselect" args="dptr">
          Debug.write('value:', this.value);
          Debug.write('datapointer:', dptr);
      </handler>
    </lzeditcombobox>
    
    <simplelayout axis="y" spacing="6"/>
    
</canvas>

Cross References

Includes

Named Instances