Waldemar Lima Well-Known Member Licensed User Longtime User May 2, 2019 #1 hello everyone ! how can i change a color of a disabled object ?
mangojack Expert Licensed User Longtime User May 3, 2019 #2 Label or object ? ... this works with Label views B4X: Sub Button1_Click If Label1.Enabled Then Label1.Enabled = False Label1.Color = Colors.Gray Else Label1.Enabled = True Label1.Color = Colors.White End If End Sub obviously you can use Colors.ARGB() to change the Alpha level if needed. Upvote 0
Label or object ? ... this works with Label views B4X: Sub Button1_Click If Label1.Enabled Then Label1.Enabled = False Label1.Color = Colors.Gray Else Label1.Enabled = True Label1.Color = Colors.White End If End Sub obviously you can use Colors.ARGB() to change the Alpha level if needed.
Erel B4X founder Staff member Licensed User Longtime User May 3, 2019 #3 Another option: https://www.b4x.com/android/forum/threads/colorstatelist.40788/#content Upvote 0