B4J Question Using Hex Color values with CSSUtils SetStyleProperty

GuyBooth

Active Member
Licensed User
Longtime User
How do I use hex color values with CSSUtils?

I want to call
B4X:
Dim COLOR_TEXT_UNSELECTED as ?? = 0xFF112233

CSSUtils.SetStyleProperty (tglBtn, "-fx-text-fill", COLOR_TEXT_UNSELECTED)
but have yet to find the magic types or conversions to make it work.

I know that this works:
B4X:
CSSUtils.SetStyleProperty(tglBtn, "-fx-text-fill", "blue")
Any insight would be appreciated...
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…