Slider issue
Posted
#1
(In Topic #1419)
Guru

Can you please confirm that it's not just me, but I have discovered a problem with Gambas 3.20.1 (and maybe 3.20.0), all seems OK on my laptop that has 3.19.5. The following code causes an overflow when the slider reaches about 25%. Does it work for you? (The slider values used are to cover all the colours available).
Posted
Regular

Europaeus sum !
<COLOR color="#FF8000">Amare memorentes atque deflentes ad mortem silenter labimur.</COLOR>
<COLOR color="#FF8000">Amare memorentes atque deflentes ad mortem silenter labimur.</COLOR>
Posted
Guru

seems to be line 96 of Slider.class (gb.gui.base)
X = W * ($iValue - $iMinValue) / ($iMaxValue - $iMinValue)
it's okay if the division gets (parenthesis)
like this..
X = W * (($iValue - $iMinValue) / ($iMaxValue - $iMinValue))
if you compile you can fix it.
i don't think it's the correct fix , just a work around for a deeper issue Benoit will know.
Posted
Guru

1 guest and 0 members have just viewed this.


