Re: slide with multiples of x?

2006-12-06 Thread John Craig
Here's another similar wee snippet. on mouseUp set the thumbPos of me to round(the thumbPos of me / 20) * 20 end mouseUp :-) Jim Ault wrote: Same result, just a little bit shorter and one less handler, but probably the same speed. on mouseUp get the thumbposition of me set

slide with multiples of x?

2006-12-05 Thread Peter T. Evensen
Is there a built-in way to create a slider that only stops at increments of x (e.g., of 20, from 0 to 100, so 0, 20, 40, 60, 80, 100)? Thanks! Peter T. Evensen http://www.PetersRoadToHealth.com 314-629-5248 or 888-682-4588 ___ use-revolution

Re: slide with multiples of x?

2006-12-05 Thread Eric Chatonet
Hi Peter, The How to Manage Snap to Scrollbars tutorial might help you: How to manage a slider snap-to behavior to make sure that the indicator lines up with the ticks especially on Mac OS X. You will access this tutorial through Tutorials Picker a free plugin that interfaces with the So

Re: slide with multiples of x?

2006-12-05 Thread Peter T. Evensen
Hi Eric, Thanks for the pointer. The one key I was missing is scrollbarDrag. I didn't know about that message. I implemented my own scrollbar value indicator that I move.Here's what I wound up with in my script. I haven't tried this on the Mac yet. I don't like the hard-coded

Re: slide with multiples of x?

2006-12-05 Thread Marty Knapp
Hey Peter, I don't think there's a built-in way to do this. You'll have to roll your own. I did stack that might help you get started - it's called Marty's Sliders in my Rev Online space, under Marty Knapp. Maybe that will help some (it doesn't do incremental stops though). Marty Knapp Is

Re: slide with multiples of x?

2006-12-05 Thread Eric Chatonet
Hi Peter, You can achieve your goal more easily with a oneliner: on mouseUp set the thumbPos of me to the thumbPos of me end mouseUp Best Regards from Paris, Eric Chatonet Le 5 déc. 06 à 22:35, Peter T. Evensen a écrit : Hi Eric, Thanks for the pointer. The one key I was missing is

Re: slide with multiples of x?

2006-12-05 Thread Peter T. Evensen
Eric, How does that make you go by 20s? I want the slider to go from 0 to 100 by 20s, so if you have the slider at position 25, it will snap back to 20. Am I missing something? At 03:45 PM 12/5/2006, you wrote: Hi Peter, You can achieve your goal more easily with a oneliner: on mouseUp

Re: slide with multiples of x?

2006-12-05 Thread Eric Chatonet
Hi Peter, Depends on the fact you want values showing or not. If you show values: yes you have to script it as you did it. Otherwise it's enough to set the endValue appropriately and multiply the thumbpos value to use it if needed. Best Regards from Paris, Eric Chatonet Le 5 déc. 06 à

Re: slide with multiples of x?

2006-12-05 Thread Jim Ault
Same result, just a little bit shorter and one less handler, but probably the same speed. on mouseUp get the thumbposition of me set the thumbposition of me to ((it div 20)+( it mod 20 div 10))*20 AdjustLabelPosition end mouseUp You can do a quick test by pasting the following lines