gregchao Active Member Licensed User Longtime User Jan 24, 2021 #1 Tabbing through the buttons move the "focus highlight" (thin blue outline) when I set the button color through the Designer. However, after I set the button color in code (see below for example), this feature no longer works for this particular button. How can I retain the focus highlight feature? B4X: BtnDoneUserInfo.Color = xui.Color_ARGB(255,113,169,191)
Tabbing through the buttons move the "focus highlight" (thin blue outline) when I set the button color through the Designer. However, after I set the button color in code (see below for example), this feature no longer works for this particular button. How can I retain the focus highlight feature? B4X: BtnDoneUserInfo.Color = xui.Color_ARGB(255,113,169,191)
Erel B4X founder Staff member Licensed User Longtime User Jan 24, 2021 #2 You will to do it like this: Code: CSSUtils.SetStyleProperty(Button1, "-fx-base", CSSUtils.ColorToHex(fx.Colors.ARGB(255,113,169,191))) Upvote 0
You will to do it like this: Code: CSSUtils.SetStyleProperty(Button1, "-fx-base", CSSUtils.ColorToHex(fx.Colors.ARGB(255,113,169,191)))