Its is possible to add an Icon from the Files folder to a button created in code?
This works with files outside the compiled jar:
But, how to use images added to the files tab?
Thanks
This works with files outside the compiled jar:
B4X:
Dim tButton As Button
tButton.Initialize("RibbonButton")
tButton.Style = "-fx-background-position: center top; -fx-background-repeat: no-repeat; -fx-background-image: url('file:///z:/save.png');"
tButton.Alignment = "BOTTOM_CENTER"
tSection.AddNode(tButton, 0, 0, 70, 70)
But, how to use images added to the files tab?
Thanks