Scrollbar (slider) question - 2nd try
Mark Swindell
mdswindell at charter.net
Tue Jun 21 00:52:44 EDT 2005
Jon,
Thank you. I'll give that a shot. Should this be a behavioral
option that might be built in to Rev at some point?
Mark
On Jun 20, 2005, at 7:15 PM, Jon wrote:
> Mark:
>
> Try something like this:
>
> on MouseUp
> local l, x
> put the ClickLoc into l -- "x,y"
> put item 1 of l into x
> put x - the left of me into x
> put x / the width of me into x -- percentage of progressBar
> put x * 100 into x -- percentage as intger
> set the thumbPosition of me to x
> end MouseUp
>
>
> Mark Swindell wrote:
>
>
>> I'm not sure if my question was clear, or if maybe I'm missing
>> something obvious, but I am trying to figure out how to do
>> something that would seem like a normal behavior. I have a
>> regular slider. When I click on the slider, I'd like the
>> thumbPos of the thumb to move to that location.
>>
>> This is what happens with a QT player and also the volume slider
>> in OS X. What I can't figure out is how to translate the mouse
>> click so that it immediately updates the thumbPos. The closest
>> the properties manager shows is increments for the scroll
>> distance... there is no "jump to click" option.
>>
>> Thanks
>> Mark
>>
>>
>> On Jun 20, 2005, at 1:30 PM, Mark Swindell wrote:
>>
>>
>>> On a click in a scroll bar how do you derive (what would be) the
>>> ThumbPos of the click? (Set the thumbpos of the target to the
>>> clickLoc) is the idea.
>>>
>>> Thanks,
>>> Mark
>>> _______
>>>
>>
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>>
>>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
More information about the use-livecode
mailing list