scale w/ ticks and snap-to

Éric Chatonet eric.chatonet at
Mon Feb 28 04:22:06 EST 2005


I'm sorry, I said something stupid yesterday and I do apologize :-)
I proposed a little script to manage a scrollbar with snap-to behavior 
so the indicator lines up with the ticks (displayed with Mac OS).
In fact, my script (changing the numberFormat property) was too much 
The following code is enough to do the job:

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 round(the thumbPos of me)
end mouseUp

I updated the little How To stack on RevOnLine.


Eric Chatonet.
So Smart Software

Pour les institutionnels, les entreprises et les associations
Des logiciels sur mesure : gestion, multimédia, internet, etc.
Windows, Mac OS et Linux... Avec la "french touch"

For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch
Web site
Email		eric.chatonet at
Phone		33 (0)1 43 31 77 62
Mobile		33 (0)6 20 74 50 86

More information about the use-livecode mailing list