E emexes Expert Licensed User Jun 27, 2019 #2 Randy B. Calahi said: how to change font color in EditText? Click to expand... I would have thought, with the .TextColor property. But the fact that you're asking, makes me think perhaps it is not that simple, so I'll give it a burl just to be sure. Upvote 0
Randy B. Calahi said: how to change font color in EditText? Click to expand... I would have thought, with the .TextColor property. But the fact that you're asking, makes me think perhaps it is not that simple, so I'll give it a burl just to be sure.
Xicu Active Member Licensed User Longtime User Jun 27, 2019 #3 Using de property textcolor Example: EditText1.TextColor=Colors.ARGB(163, 255, 255, 0) Upvote 0
E emexes Expert Licensed User Jun 27, 2019 #5 Xicu said: Using de property textcolor Click to expand... Great minds think alike I used: B4X: Sub Button1_Click If Rnd(1, 3) = 1 Then EditText1.TextColor = Colors.Black Else EditText1.TextColor = Colors.RGB(Rnd(0, 255), Rnd(0, 255), Rnd(0, 255)) End If End Sub to demonstrate use of the Colors.* built-in color constants, and building colors from RGB components, to get eg this: Upvote 0
Xicu said: Using de property textcolor Click to expand... Great minds think alike I used: B4X: Sub Button1_Click If Rnd(1, 3) = 1 Then EditText1.TextColor = Colors.Black Else EditText1.TextColor = Colors.RGB(Rnd(0, 255), Rnd(0, 255), Rnd(0, 255)) End If End Sub to demonstrate use of the Colors.* built-in color constants, and building colors from RGB components, to get eg this:
E emexes Expert Licensed User Jun 27, 2019 #6 Note that you can set/change that property from within Designer too, as well as from within your program. And the .Color property changes the background color. Upvote 0
Note that you can set/change that property from within Designer too, as well as from within your program. And the .Color property changes the background color.
E emexes Expert Licensed User Jun 27, 2019 #7 This must be some incredible multi-hued extravaganza you're coding up, what with all these colorful questions! Upvote 0
This must be some incredible multi-hued extravaganza you're coding up, what with all these colorful questions!