Bug? Error B4XSeekBar vertical

red30

Well-Known Member
Licensed User
Longtime User
I wrote a test program where I use two B4XSeekBars, vertical and horizontal.
If I set, for example, "minimum" 0, and "maximum" 15 in the designer everything works fine. But if I set the "minimum" to 5 and the "maximum" to 15, the horizontal B4XSeekBar works fine, and with the vertical one I get this problem:
Perhaps I am doing something wrong or am I misunderstanding how the B4XSeekBar works? How can this error be corrected?
 

klaus

Expert
Licensed User
Longtime User
There is an error in the B4XSeekBar library.
In the Update routine, this line
Dim s1 As Int = Radius2 + (MaxValue - mValue - MinValue) / (MaxValue - MinValue) * size
must be
Dim s1 As Int = Radius2 + (MaxValue - mValue) / (MaxValue - MinValue) * size

Erel needs to amdend this in the XUI Views library.
 
Top