|programmatically limiting scale drag [message #467776]
||Mon, 06 February 2006 16:44
| Spencer Stejskal
Registered: July 2009
I am looking for a way to programmatically limit how far a user can drag the |
thumb on a scale. i have preset min/max values which are set on the scale
but i also have another, completely independent, set of conditions which
needs to stop the thumb within the valid range of the slider.
I may have a min of 765 and a max of 1120. my seperate set of conditions
say the user cannot drag the thumb higher than the 1050 mark. i cannot
change the max value to 1050 because of business logic, that is it would
confuse my users. i am currently listening for selection events on the
scale and if the value is above 1050 then i am resetting the value to
exactly 1050. logically this solves my problem but it is aesthetically
unpleasing because the thumb blinks and jumps around in a crazy fashion.
any ideas on how i can do this more gracefully?
Powered by FUDForum
. Page generated in 0.02605 seconds