Bug? B4XSeekbar changing Width or Height is not working as expected in B4A

klaus

Expert
Licensed User
Longtime User
I noticed that when changing in the code B4XSeekbar.mBase.Width or B4XSeekbar.mBase.Height does not work as expected in B4A.
When these properties are changed in the code the result is wrong because the Base_Resize event is not raised.
I took the source code of the B4XSeekbar, added two Property routines setWidth and setHeight which call the Base_Resize event.
The attached demo program shows the problem comparison B4XSeekbar and B4XSeekbarNew.

1700397147399.png
1700397162851.png


Left image, with original size, width / height = 160dip
Right image, clicking on Change the width / height = 250dip
You see that the circle becomes an ellipse.
Moving the cursor does not work correctly.
 

Attachments

  • TestB4XSeekbar.zip
    11.1 KB · Views: 42
Last edited:
Top