M MathiasM Active Member Licensed User Jul 15, 2025 #1 Hello I try to set a textbox.TextColor = Colors.Black. But the IDE shows an error on Colors.Black because Colors is not defined. How do I enable the Colors functionality? Thank you!
Hello I try to set a textbox.TextColor = Colors.Black. But the IDE shows an error on Colors.Black because Colors is not defined. How do I enable the Colors functionality? Thank you!
aeric Expert Licensed User Longtime User Jul 15, 2025 #2 Colors only available in B4A. For cross platform (B4A, B4i and B4J), use XUI library. Example: B4X: textbox.TextColor = XUI.Color_Black For B4J specific, you can use JFX. Example: B4X: textbox.TextColor = FX.Colors.Black Upvote 1
Colors only available in B4A. For cross platform (B4A, B4i and B4J), use XUI library. Example: B4X: textbox.TextColor = XUI.Color_Black For B4J specific, you can use JFX. Example: B4X: textbox.TextColor = FX.Colors.Black
Erel B4X founder Staff member Licensed User Longtime User Jul 16, 2025 #3 I recommend using XUI even for B4J only projects. XUI is simpler and in many cases better. Upvote 0
M MathiasM Active Member Licensed User Jul 25, 2025 #4 Thanks for your responses. I will look into XUI. But FX.Colors.Black did the trick for non XUI indeed. Upvote 0
Thanks for your responses. I will look into XUI. But FX.Colors.Black did the trick for non XUI indeed.