B4J Question TextArea Transparent Background Color on focus

Alexander Stolte

Expert
Licensed User
Longtime User
With this code i can set the background color to transparent:
B4X:
CSSUtils.SetStyleProperty(TextArea1,"-fx-control-inner-background","transparent")
CSSUtils.SetStyleProperty(TextArea1,"-fx-background","transparent")
CSSUtils.SetBackgroundColor(TextArea1,Main.fx.Colors.Transparent)

But, if the TextArea gets focus then there is a new Background Color, how to set this color to transparent?
1658260691689.png
 

Attachments

  • TextArea BackgroundColor.zip
    3.3 KB · Views: 162

TILogistic

Expert
Licensed User
Longtime User
or
B4X:
    CSSUtils.SetStyleProperty(TextArea1,"-fx-control-inner-background","transparent")
    CSSUtils.SetStyleProperty(TextArea1,"-fx-background","transparent")
    CSSUtils.SetStyleProperty(TextArea1,"-fx-faint-focus-color","transparent")
    CSSUtils.SetStyleProperty(TextArea1,"-fx-background-color","transparent")
    CSSUtils.SetStyleProperty(TextArea1,"-fx-text-fill","Black")

1658284274060.png
 
Upvote 0

TILogistic

Expert
Licensed User
Longtime User
see example textarea and file style.

1658286213204.png


Post:
Sorry Spanish:
 

Attachments

  • B4XFloatTextField.zip
    4 KB · Views: 190
Upvote 0
Top