red30 Well-Known Member Licensed User Longtime User Mar 19, 2024 #1 I have one parent panel. In the code I add a few more panels to it. B4X: Copy Dim pnlback As Pane Dim pnl_temp(8) As Pane For i = 0 To 7 pnl_temp(i).Initialize("") CSSUtils.SetBackgroundColor(pnl_temp(i),fx.Colors.Gray) pnlback.AddNode(pnl_temp(i),0,(pnlback.Height/8)*i,pnlback.Width,frmfirst.Height*0.005) Next How can I change their order? That is, how can I make one panel “under” or “above” the other? This is easy to do in the designer. I just change their order in the "views tree" window
I have one parent panel. In the code I add a few more panels to it. B4X: Copy Dim pnlback As Pane Dim pnl_temp(8) As Pane For i = 0 To 7 pnl_temp(i).Initialize("") CSSUtils.SetBackgroundColor(pnl_temp(i),fx.Colors.Gray) pnlback.AddNode(pnl_temp(i),0,(pnlback.Height/8)*i,pnlback.Width,frmfirst.Height*0.005) Next How can I change their order? That is, how can I make one panel “under” or “above” the other? This is easy to do in the designer. I just change their order in the "views tree" window
aeric Expert Licensed User Longtime User Mar 19, 2024 #2 If you set it to B4XView, you can use BringToFront. Upvote 0