adding bal and background to panel

Smee

Well-Known Member
Licensed User
Longtime User
My next problem is this
I am trying to add a background to a panel as well as a bal file

B4X:
   panels(0).LoadLayout("menu")
   panels(0).SetBackgroundImage(NewBitmap1)

The background image does not show

If i do
B4X:
activity.LoadLayout("menu")
activity.SetBackgroundImage(NewBitmap1)

that works ok
 

Smee

Well-Known Member
Licensed User
Longtime User
Thanks for the reply Klaus,

I have been distracted on another problem for a while. You are correct in the setting of the 100%.

I made the mistake it should have been zero and that was the source of my problem. I did not realise the screen was being loaded

Thank you

Joe
 
Upvote 0
Top