Chris Guanzon Active Member Licensed User Longtime User Apr 26, 2022 #1 Hello! How can I change the highlight color in B4XFloatTextfield? I've looked through the forum but got nothing.
Hello! How can I change the highlight color in B4XFloatTextfield? I've looked through the forum but got nothing.
Erel B4X founder Staff member Licensed User Longtime User Apr 26, 2022 #2 => selected text B4X: ft.TextField.SetSelection(...) Upvote 0
DonManfred Expert Licensed User Longtime User Apr 26, 2022 #3 Erel said: => selected text Click to expand... B4X: B4XFloatTextField1.TextField.SetSelection(cursorPosition, 0) The TO was asking on how to change the Highlight-COLOR; not the selection. Upvote 0
Erel said: => selected text Click to expand... B4X: B4XFloatTextField1.TextField.SetSelection(cursorPosition, 0) The TO was asking on how to change the Highlight-COLOR; not the selection.
Erel B4X founder Staff member Licensed User Longtime User Apr 26, 2022 #4 B4X: Dim fx As JFX CSSUtils.SetStyleProperty(B4XFloatTextField1.TextField, "-fx-accent", CSSUtils.ColorToHex(fx.Colors.Green)) Upvote 0
B4X: Dim fx As JFX CSSUtils.SetStyleProperty(B4XFloatTextField1.TextField, "-fx-accent", CSSUtils.ColorToHex(fx.Colors.Green))
Chris Guanzon Active Member Licensed User Longtime User Apr 26, 2022 #5 Erel said: View attachment 128527 B4X: Dim fx As JFX CSSUtils.SetStyleProperty(B4XFloatTextField1.TextField, "-fx-accent", CSSUtils.ColorToHex(fx.Colors.Green)) Click to expand... Thank you sir @Erel, Much appreciated. Upvote 0
Erel said: View attachment 128527 B4X: Dim fx As JFX CSSUtils.SetStyleProperty(B4XFloatTextField1.TextField, "-fx-accent", CSSUtils.ColorToHex(fx.Colors.Green)) Click to expand... Thank you sir @Erel, Much appreciated.