I'm trying to use the standard slider component. I need to capture
the event when the value of the slider changes.
I used the following code:
<slider name="page_range" x="50" y="10" width="150" keystep="1"
minvalue="1">
<method event="onvalue" args="v">
Debug.write("Value ",v);
</method>
<method event="onmouseup">
Debug.write("Mouse Up ",this.getValue());
</method>
</slider>
When I move the slider, the debug window shows the values AS I MOVE
the slider. What I'm interested is capturing ONLY THE LAST value set.
Something like capturing onmouseup. However, onmouseup event doesn't
seem to work or doesn't seem to be triggered.
Is there a way (an efficient way) to do this? I looked at the LZPIX
source to learn how it's done there but, even though I could
implement something similar as in LZPIX, I thought there has got to
be an easier way to do that with the standard slider component.
Thanks,
Daniel
_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user