Slider thumbPosition crazy values
Eric Chatonet
eric.chatonet at sosmartsoftware.com
Thu Apr 21 13:59:25 EDT 2005
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
----------------------------------------------------------------
More information about the use-livecode
mailing list