Slider thumbPosition crazy values
Dennis Brown
see3d at writeme.com
Thu Apr 21 15:08:46 EDT 2005
Thanks Eric,
Setting the Value Format for the slider let me see that the slider does
not increase in unit values of the scale marker even though the scroll
distance on bar click is set to 1. I guess the units were close
because of the sizing I applied to the object so that it appeared that
it was advancing by 1. In the Variable watcher it said the value of SQ
was 3, but if SQ=3 statement would evaluate false --I got real
confused. Got to watch out for that property with scrollbars.
Dennis
On Apr 21, 2005, at 1:59 PM, Eric Chatonet wrote:
> Hi Dennis,
>
> Your problem is with the numberFormat property:
> By default, the numberFormat property is set to 0.######.
> BUT (see the docs) the numberFormat of newly created scrollbars is set
> to empty.
> So you have a scrollbar whose behaviour accords with default
> numberFormat value and another with scrollbars default numberFormat
> values.
> And the current numberformat value is applied when you perform any
> calculation (addition in your case).
>
> Le 21 avr. 05, à 19:17, Dennis Brown a écrit :
>
>> 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?????
>
> Amicalement,
>
> 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
> ----------------------------------------------------------------
> Web site http://www.sosmartsoftware.com/
> Email eric.chatonet at sosmartsoftware.com/
> Phone 33 (0)1 43 31 77 62
> Mobile 33 (0)6 20 74 50 86
> ----------------------------------------------------------------
>
> _______________________________________________
> 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