Wish [Solved] RoundSlider, "Thumb Color" property

swChef

Active Member
Licensed User
Longtime User
Please consider adding property "Thumb Color" so that optionally the default white thumb portion of the control can be set to an alternate color.

Thank you. I impl this in my XUI Views.b4xlib but would like to not lose it on a future IDE software upgrade.
 

swChef

Active Member
Licensed User
Longtime User
Beware. I had to experiment a bit to be able to parse the hex values I tried to copy in. Below is a sample, I was using other values.
  • SetThumbColor accepts Colors.Red etc
  • SetThumbColor did not accept Bit.ParseInt("FF0000",16)
  • SetThumbColor did accept Bit.Or(0xff000000,Bit.ParseInt("FF0000",16))
Example usage (mixed methods)
B4X:
RoundSlider1.SetThumbColor(Bit.Or(0xff000000,Bit.ParseInt("FF0000",16)),Colors.Green)
 

swChef

Active Member
Licensed User
Longtime User
In the case that the hex color code is stored from user choice?
 
Top