Eric,

This is helpful. I do, however, think it should still be considered a bug that one needs a special script in order to correct how sliders work when created in the IDE.

Plus, since the script below actually modifies the pageIncrement away from what you originally intended, you again will have to do some funny calculation if you rely on the actual numeric value of the thumbPos.

A very helpful stack to get people unstuck, but this really is both an IDE and an engine bug IMO.

- Brian

Hi Michael and Brian,

May be you could have a look to my How-To stack "How to manage scrollbars" (available through Tutorials Picker: see my website).
It does the trick with the rigt ticks marks :-)

on scrollbarDrag pPos
set the pageInc of me to the endValue of me / (the endValue of me + 1)
end scrollbarDrag
--------------------------------
on mouseUp
  set the thumbPos of me to the thumbPos of me
end mouseUp


Le 9 juin 05 à 04:09, Michael J. Lew a écrit :

What do these number series have in common, and what is the underlying pattern?
a: 1,2,3,4,5,6,7,8,8,9,10;
b: 1,10,20,29,38,48,57,67,76.

The answer is they are the series of values that you get when you click on the bar of (a) a fresh, unadjusted slider control, and (b) a slider with its "On bar click" value (pageInc property) set to 10.

Here is a challenge:
Make a slider control that starts at 0 and increments by exactly 10 when you click on the bar, up to 100.

It is certainly possible, but not easy if you don't know the trick.


Best regards from Paris,

Eric Chatonet.
----------------------------------------------------------------
So Smart Software

For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch

Plugins, tutorials and more on our website
----------------------------------------------------------------
Web site        http://www.sosmartsoftware.com/
Email        [EMAIL PROTECTED]/
Phone        33 (0)1 43 31 77 62
Mobile        33 (0)6 20 74 50 86
----------------------------------------------------------------

_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution



_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to