alfcen Well-Known Member Licensed User Longtime User Dec 29, 2010 #1 Although set to front and color-drawable in the Designer, a panel does not appear to z-index over views based on images. Is there any means to force a panel over all other elements?
Although set to front and color-drawable in the Designer, a panel does not appear to z-index over views based on images. Is there any means to force a panel over all other elements?
Erel B4X founder Staff member Licensed User Longtime User Dec 29, 2010 #2 Are you sure that those views are not child views of the panel? Upvote 0
alfcen Well-Known Member Licensed User Longtime User Dec 29, 2010 #3 Absolutely sure. The image based views were added in code. If the Panel is added in code as well: Code: Copy Panel1.Initialize("Panel1") Activity.AddView(Panel1,0 ,0, 100%x, 100%y) Panel1.Color = Colors.Black then all is fine. There is no means of confirming the result of "Bring to front" in the Designer. Anyway, it's fine with me to add that panel in code. By the way, your answers are too fast :icon_clap: Upvote 0
Absolutely sure. The image based views were added in code. If the Panel is added in code as well: Code: Copy Panel1.Initialize("Panel1") Activity.AddView(Panel1,0 ,0, 100%x, 100%y) Panel1.Color = Colors.Black then all is fine. There is no means of confirming the result of "Bring to front" in the Designer. Anyway, it's fine with me to add that panel in code. By the way, your answers are too fast :icon_clap:
Erel B4X founder Staff member Licensed User Longtime User Dec 29, 2010 #4 I think I understand. You added a panel in the designer and then added an ImageView by code. Views that are added later will always be in front of previous views. With the new Core library you can call View.BringToFront to change the zorder in runtime. Upvote 0
I think I understand. You added a panel in the designer and then added an ImageView by code. Views that are added later will always be in front of previous views. With the new Core library you can call View.BringToFront to change the zorder in runtime.
alfcen Well-Known Member Licensed User Longtime User Dec 29, 2010 #5 That's right, Erel and I now understand why. Also in the code, in order to get to the top, the Panel must be placed after all other views. I will get the latest Core. Thanks so much! Upvote 0
That's right, Erel and I now understand why. Also in the code, in order to get to the top, the Panel must be placed after all other views. I will get the latest Core. Thanks so much!