Hi,
I am successfully using CSS to set the background image of a label.
I need to reset the background at runtime and I have tried:
which removes the background but throws a warning in the log:
Waiting for debugger to connect...
Program started.
Sep 03, 2021 5:28:05 PM com.sun.javafx.css.StyleManager getCachedImage
WARNING: Error loading image: file:/C:/D/b4a_projects/B4J_Projects/testlabelimage/Files/
Is there a smarter way to do that?
thanks!
I am successfully using CSS to set the background image of a label.
B4X:
CSSUtils.SetBackgroundImage(labe1,File.DirAssets,"test.png")
I need to reset the background at runtime and I have tried:
B4X:
CSSUtils.SetBackgroundImage(label1,File.DirAssets,"")
which removes the background but throws a warning in the log:
Waiting for debugger to connect...
Program started.
Sep 03, 2021 5:28:05 PM com.sun.javafx.css.StyleManager getCachedImage
WARNING: Error loading image: file:/C:/D/b4a_projects/B4J_Projects/testlabelimage/Files/
Is there a smarter way to do that?
thanks!