B4J Question Several panels. Sequence order.

red30

Well-Known Member
Licensed User
Longtime User
I have one parent panel. In the code I add a few more panels to it.
B4X:
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
 
Top