swChef Active Member Licensed User Longtime User Jan 15, 2020 #1 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.
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 Jan 16, 2020 #3 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)
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)
Erel B4X founder Staff member Licensed User Longtime User Jan 16, 2020 #4 Why? Use the color picker to get the values" B4X: RoundSlider1.SetThumbColor(0xffff0000 ,Colors.Green)
Why? Use the color picker to get the values" B4X: RoundSlider1.SetThumbColor(0xffff0000 ,Colors.Green)
swChef Active Member Licensed User Longtime User Jan 18, 2020 #5 In the case that the hex color code is stored from user choice?
Erel B4X founder Staff member Licensed User Longtime User Jan 19, 2020 #6 Not sure that I understand the question. Color values are simple int values. You don't need to store them as hex strings. For further discussion please start a new thread in the questions forum.
Not sure that I understand the question. Color values are simple int values. You don't need to store them as hex strings. For further discussion please start a new thread in the questions forum.