Components-$64.lzx
<canvas height="150">
<include href="lz/floatinglist.lzx"/>
<dataset name="items">
<item value="item0">item 0</item>
<item value="item1">item 1</item>
<item value="item2">item 2</item>
<item value="item3">item 3</item>
<item value="item4">item 4</item>
<item value="item5">item 5</item>
<item value="item6">item 6</item>
<item value="item7">item 7</item>
<item value="item8">item 8</item>
<item value="item9">item 9</item>
<item value="item10">item 10</item>
<item value="item11">item 11</item>
</dataset>
<class name="simplecombobox" extends="basedatacombobox" width="100">
<attribute name="_cbtext" value="$once{this._text}"/>
<attribute name="menuclassname" value="floatinglist
" type="string"/>
<view width="100%" height="20" focusable="false" bgcolor="#CCCCCC">
<handler name="onclick">
lz.Focus.setFocus(this,false);
classroot.toggle()
</handler>
<handler name="onmouseout">
this.setAttribute('bgcolor', 0xCCCCCC);
</handler>
<handler name="onmouseup">
this.setAttribute('bgcolor', 0xCCCCCC);
</handler>
<handler name="onmouseover">
this.setAttribute('bgcolor', 0xEEEEEE);
</handler>
<handler name="onmousedown">
this.setAttribute('bgcolor', 0xAAAAAA);
</handler>
</view>
<text name="_text" width="${ parent.width - 19 }" x="7"/>
</class>
<simplecombobox id="cbox1" width="130" shownitems="6" defaulttext="Choose One..." itemdatapath="items:/item"/>
</canvas>
Cross References
Includes
Classes
Named Instances
- <simplecombobox id="cbox1">
- <dataset name="items">