S strupp01 Active Member Licensed User Longtime User Jul 24, 2017 #1 How can I change the text color of a TextArea in the program code?
JanPRO Well-Known Member Licensed User Longtime User Jul 24, 2017 #2 Hi, B4X: TextArea1.Style = "-fx-text-fill: green" Jan Upvote 0
stevel05 Expert Licensed User Longtime User Jul 24, 2017 #3 Or easier to manage with cssutils: B4X: CSSUtils.SetStyleProperty(TextArea1,"-fx-text-fill","RED") Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Jul 24, 2017 #5 Always better to use CSSUtils. Setting the style directly will remove the other attributes that are set by the designer. Upvote 0
Always better to use CSSUtils. Setting the style directly will remove the other attributes that are set by the designer.
S strupp01 Active Member Licensed User Longtime User Jul 24, 2017 #6 I need to change the color in the program. Therefore, no other choice. Upvote 0
DonManfred Expert Licensed User Longtime User Jul 25, 2017 #7 strupp01 said: I need to change the color in the program. Therefore, no other choice. Click to expand... No problem at all. Just use the solution from @stevel05 and not the one from @JanPRO Upvote 0
strupp01 said: I need to change the color in the program. Therefore, no other choice. Click to expand... No problem at all. Just use the solution from @stevel05 and not the one from @JanPRO
S strupp01 Active Member Licensed User Longtime User Jul 25, 2017 #8 Thank you. I have done so. Upvote 0