PDA

View Full Version : Manually setting value for HSlider


mfsiddiq
02-11-2009, 09:02 AM
I am trying to manually set the position for Hslider thumb using the value attribute like


this.value=x where 'this' refers to HSlider.But if i set 'this.value=0',it works fine and the change event is also fired.But if i set the value to any other digit except 0,the thumb position changes fine,but the change event in not fired.

Any suggestions will be greater appreciated.

Thanks
Sidd

drkstr
02-11-2009, 05:26 PM
I don't think it's supposed to dispatch a change event for internal state changes. You can dispatch it manually if you like, or call something like invalidateProperties(). I don't remember if that would dispatch a change event though.


Best Regards,
~Aaron