Cableguy Expert Licensed User Longtime User Mar 7, 2016 #1 Hi guys, I would like to eliminate the Focus Highlight (not the focus) behaviour on a textfield. how to accomplish this?
Hi guys, I would like to eliminate the Focus Highlight (not the focus) behaviour on a textfield. how to accomplish this?
jmon Well-Known Member Licensed User Longtime User Mar 8, 2016 #2 with css: B4X: tf.Style = $"-fx-focus-color: transparent;"$ Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Mar 8, 2016 #3 You should always use CSSUtils to set CSS attributes. Otherwise you will overwrite the attributes set by the designer. B4X: CSSUtils.SetStyleProperty(tf, "-fx-focus-color", "transparent") Upvote 0
You should always use CSSUtils to set CSS attributes. Otherwise you will overwrite the attributes set by the designer. B4X: CSSUtils.SetStyleProperty(tf, "-fx-focus-color", "transparent")