Hi Daniel,

You at least are the third person to ask about this in the last week.  
I haven't answered since the first exchange because I think there's a  
slightly bigger change proposal to be made here, and I keep expecting  
to have time to write it up :-)

The more generic problem to be solved (in my opinion) is that we need  
a way of telling when a new value should be committed back to the  
model. I think this is broadly what you and others have been asking  
for, because sometimes it is too expensive or inappropriate to signal  
a value change during this sort of live interaction.

To do this properly, though, you want to be a bit careful -- another  
agent might change the value during a drag, for example. Then there's  
validation, which haven't really been tightly integrated into the  
components yet but should be.

Anyway, probably all too broadly scoped for your immediate need. What  
we should do in the near term is figure out a "best practices"  
recommendation for this problem and then step back and look at the  
bigger design issues later.

I'll do some thinking about the best short-term approach, and if  
anyone else has recommendation, please speak up.

jim

On May 24, 2006, at 8:02 AM, Daniel Salama wrote:

> Hello,
>
> I'm using a slider component and I would like to capture the value of
> the slider after the mouse button has been released. Is it possible?
>
> I added something like this:
>
> <slider>
>    <method event="onvalue" args="v">
>      Debug.write("Value ",v);
>    </method>
> </slider>
>
> The problem with this is that the event is called constantly while
> the mouse button is down and moving the slider. I'm only interested
> in capturing the last value of the slider after the mouse button has
> been released.
>
> I also tried capturing the onmouseup event but that doesn't seem to
> be triggered.
>
> Help please.
>
> Thanks,
> Daniel
> _______________________________________________
> Laszlo-user mailing list
> [email protected]
> http://www.openlaszlo.org/mailman/listinfo/laszlo-user

_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user

Reply via email to