Hey All,
Hopefully this is a quick one. I've found hints that it can be done and managed to get something unscaled, but figured I'd check with the group.
I'd like to change my main menu screen background depending on the organization that is using the program. I can change it in the designer obviously, but don't want to have to recompile every time the background or the program icon needs to change. I found an old post from 2012 where Erel said you could use ImageView or the style. He then gave an example of using the style with
I used that and was able to get the background to change, but not scaled to fit the form.
What's the best way to do something like this? I'd like to end up having a configuration page where the user will choose an image. I'll store the name in the database and load it at startup.
Thanks,
Jim
Hopefully this is a quick one. I've found hints that it can be done and managed to get something unscaled, but figured I'd check with the group.
I'd like to change my main menu screen background depending on the organization that is using the program. I can change it in the designer obviously, but don't want to have to recompile every time the background or the program icon needs to change. I found an old post from 2012 where Erel said you could use ImageView or the style. He then gave an example of using the style with
B4X:
MainForm.RootPane.Style = "-fx-background-image: url('" & File.GetUri(File.DirAssets, "bitmap.png") & "');"
What's the best way to do something like this? I'd like to end up having a configuration page where the user will choose an image. I'll store the name in the database and load it at startup.
Thanks,
Jim