<class name="dragger" > ... <method event="onmousedown"> checkdrag.apply(); </method> <method event="onmouseup"> canvas.dragimage.stopdrag(this); checkdrag.remove(); </method> <checkdragstate name="checkdrag" draggername="dragimage"/> </class>
<class name="droptarget"> ... <method name="init"> super.init(); LzTrack.register(this, 'target'); </method> <method event="onmousetrackover"> setAttribute('bgcolor', 0xffff00); // hilite </method> <method event="onmousetrackout"> setAttribute('bgcolor', null); // normal </method> <method event="onmousetrackup"> setAttribute('bgcolor', null); // normal canvas.dragimage.dropcomplete(this); Debug.write('dropped: '+dragimage.source.text); </method> </class>
Copyright © 2002-2007 Laszlo Systems, Inc. All Rights Reserved. Unauthorized use, duplication or distribution is strictly prohibited. This is the proprietary information of Laszlo Systems, Inc. Use is subject to license terms.