trap a scrollbar drag

Mark Schonewille m.schonewille at economy-x-talk.com
Wed Apr 9 18:39:27 EDT 2008


Hi Hershel,

You can disable a scrollbar object, which prevents dragging of the  
thumb completely.

You could also make the thumb jumb back to its original position. For  
this, you save the thumbPos into a local variable on mouseDown and set  
the thumbPos back to the stored value if necessary.

Surely, you could reset the thumbPos in the scrollbarDrag handler, but  
this looks bad.

Best regards,

Mark Schonewille

--

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
http://www.salery.biz

A large collection of scripts for HyperCard, Revolution, SuperCard and  
other programming languages can be found at http://runrev.info




On 10 apr 2008, at 01:29, Hershel Fisch wrote:
> Hi, how can I trap a scrollbar drag, meaning it should not brag only  
> on a
> certain times?
> Thanks, Hershel




More information about the use-livecode mailing list