S Smee Well-Known Member Licensed User Longtime User Oct 3, 2011 #1 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
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
klaus Expert Licensed User Longtime User Oct 3, 2011 #2 What exactly is the problem ? Do you get any error message ? From your code in another post the Left property of the panels is set to 100%x so out of the screen. Do you set this property to 0 somewhere ? Best regards. Upvote 0
What exactly is the problem ? Do you get any error message ? From your code in another post the Left property of the panels is set to 100%x so out of the screen. Do you set this property to 0 somewhere ? Best regards.
S Smee Well-Known Member Licensed User Longtime User Oct 6, 2011 #3 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
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