滑动菜单

<canvas debug="true" >

<dataset name="ds" >
<root>
<node text="Tab 1" />
<node text="Tab 2" />
<node text="Tab 3" />
<node text="Tab 4" />
<node text="Tab 5" />
</root>
</dataset>

<tabslider width="400" height="300" >
<tabelement datapath="ds:/root/node" width="100%" text="$path{'@text'}" >
<handler name="oninit" >
if (this.clonenumber == 0) {
Debug.write( "this=%w, cloneManager=%w", this, this.cloneManager);
this.setAttribute("selected", true);
}
</handler>
<text text="Hello World!" />
</tabelement>
</tabslider>

</canvas>

你可能感兴趣的:(菜单)