Slider thumbPosition crazy values

Dennis Brown see3d at writeme.com
Thu Apr 21 13:54:24 EDT 2005


Thanks Mark,

I also just "fixed" the problem by putting a script into the sliders 
(slider 1 also started generating crazy values the more I tested it).

on mouseup
   set thumbPosition of me to round( thumbposition of me)
end mouseup

So I can fix it, but it still doesn't explain why I should have to fix 
it.

Dennis

On Apr 21, 2005, at 1:38 PM, Mark Talluto wrote:

>
> On Apr 21, 2005, at 10:17 AM, Dennis Brown wrote:
>
>> I am really baffled debugging what should be a non-problem, but I 
>> must be missing something basic.  I was trying to debud why my script 
>> would not work and I worked it down to this symptom.
>>
>> I made two sliders that go from 1 to 44, increment 1, show value.  
>> The first one "startQ" works as expected.  The second one "endQ" 
>> behaves in a strange way.
>>
>>   put the thumbPosition of scrollbar "startQ" into SQ --starting 
>> quarter
>>   put the thumbPosition of scrollbar "endQ" into EQ --ending quarter
>>   put SQ && EQ     -- displays 2 2
>>   put SQ +0 && EQ +0  -- displays 2 1.9375
>>
>> every click on the first slider advances the thumbPosition by 1
>> every click on the second slider advances the thumbPosition by 
>> 0.9375, but displays as an integer.
>>
>> I made the second slider by copy/paste the first slider.  Then I 
>> tried deleting that slider and dragging a fresh slider to the card to 
>> make the second one, but it still acts the same.  I checked every 
>> inspector basic parameter, and both are identical.
>>
>> What is going on?????
>>
>
>
> Hi Dennis,
>
> I just tried you situation and all behaved as it should.  Give this a 
> try and see what happens.  I did the following in the scroll bar 
> scripts:
>
> --SCROLLBAR ONE
> on scrollbarDrag lValue
>   global SQ
>   put lValue into SQ
> end scrollbarDrag
>
>
> --SCROLLBAR TWO
> on scrollbarDrag lValue
>   global EQ
>   put lValue into EQ
> end scrollbarDrag
>
>
> --IN A BUTTON
> on mouseUp
>   global SQ, EQ
>   put (SQ+0) && (EQ+0)
> end mouseUp
>
>
>
> Mark Talluto
> -- 
> CANELA Software
> http://www.canelasoftware.com
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



More information about the use-livecode mailing list