Hi
My test program attached.
You can see some warning message in the debug window when the opttree
class has been recreated.
The message is 'dp undefined'.
But i checked this, the 'dp', that is datapointer, got instance both
oninit and ondata.
I could not resolved it.
Any idea?
Thanks
mt1
<canvas debug="true">
<include href="incubator/opttree/opttree.lzx"/>
<include href="treenode.lzx"/>
<dataset name="ds">
<root>
<node name="A">
<node name="AA">
<node name="AA1"/>
<node name="AA2"/>
</node>
</node>
</root>
</dataset>
<method name="cl">
Debug.write( "nt click" );
</method>
<view x="240" y="20">
<simplelayout/>
<button>Create ds
<method event="onclick">
var nt1 = new opttree( canvas,{ name:'nt',
datapath:'ds:/root',
nodeclass:'treenode',
pooling: 'false',
width:230 } );
</method>
</button>
<button>Destroy ds
<method event="onclick">
canvas.nt.setAllOpen( false );
canvas.nt.destroy();
</method>
</button>
</view>
</canvas>
_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user