yaniv hanya Active Member Licensed User Aug 13, 2019 #1 the screenshot shows a panel created like this: Code: Copy BigImgsViewerPnl.Initialize("BigImgsViewerPnl") BigImgsViewerPnl.LoadLayout("ImgsViewLy") BigImgsViewerPnl.Visible=False BigImgsViewerPnl.Enabled=False Activity.AddView(BigImgsViewerPnl,0,0,100%x,100%y) by a button click it become visiable with this code Code: Copy BigImgsViewerPnl.Visible=True BigImgsViewerPnl.Enabled=True BigImgsViewerPnl.BringToFront And although he is set for the transparency 255, the buttons behind him (marked with red circles ) appear above it. Do you have any idea why? Attached is an example of the code that I use to just click the click me button and the problematic panel appears Attachments imgTest.zip imgTest.zip 254.7 KB · Views: 632
the screenshot shows a panel created like this: Code: Copy BigImgsViewerPnl.Initialize("BigImgsViewerPnl") BigImgsViewerPnl.LoadLayout("ImgsViewLy") BigImgsViewerPnl.Visible=False BigImgsViewerPnl.Enabled=False Activity.AddView(BigImgsViewerPnl,0,0,100%x,100%y) by a button click it become visiable with this code Code: Copy BigImgsViewerPnl.Visible=True BigImgsViewerPnl.Enabled=True BigImgsViewerPnl.BringToFront And although he is set for the transparency 255, the buttons behind him (marked with red circles ) appear above it. Do you have any idea why? Attached is an example of the code that I use to just click the click me button and the problematic panel appears
Erel B4X founder Staff member Licensed User Longtime User Aug 13, 2019 #2 yaniv hanya said: Do you have any idea why? Click to expand... Yes. Buttons have an elevation of 2dip. Set the panel elevation to 3dip+. Code: Copy pnl.Elevation = 3dip Upvote 0
yaniv hanya said: Do you have any idea why? Click to expand... Yes. Buttons have an elevation of 2dip. Set the panel elevation to 3dip+. Code: Copy pnl.Elevation = 3dip
yaniv hanya Active Member Licensed User Aug 13, 2019 #3 Wow. So simple and works wonderful. I broke my head on it hours yesterday. Thank you very much Upvote 0
E emexes Expert Licensed User Longtime User Aug 13, 2019 #4 yaniv hanya said: Wow. Click to expand... What I found even more Wow is the parallax effect. Don't know if it works on every device, but when it does, the items that are in front move relative to the background when you tilt the phone. Or perhaps the background moves. Whichever it was, freaked me out first time I saw it. In a good way. Upvote 0
yaniv hanya said: Wow. Click to expand... What I found even more Wow is the parallax effect. Don't know if it works on every device, but when it does, the items that are in front move relative to the background when you tilt the phone. Or perhaps the background moves. Whichever it was, freaked me out first time I saw it. In a good way.