2021.12.03 - Added a fixed project. Turns out I was using the same name for multiple panes. That is a no-no.
To duplicate the issue, run the attached app. You can see that the two layouts overlay each other, even though they are loaded into two different panes.
If you comment out one of the LoadLayout() calls, the other layout loads fine!
This works fine:
And this works fine:
But this does not!
This works fine:
I just discovered prior to posting this that if you switch their order, it works!
What's going on?! I smell a bug! ?
To duplicate the issue, run the attached app. You can see that the two layouts overlay each other, even though they are loaded into two different panes.
If you comment out one of the LoadLayout() calls, the other layout loads fine!
This works fine:
B4X:
'pane_BuyForm.LoadLayout("lo_OrderFormBuy")
pane_SellForm.LoadLayout("lo_OrderFormSell")
And this works fine:
B4X:
pane_BuyForm.LoadLayout("lo_OrderFormBuy")
'pane_SellForm.LoadLayout("lo_OrderFormSell")
But this does not!
This works fine:
B4X:
pane_BuyForm.LoadLayout("lo_OrderFormBuy")
pane_SellForm.LoadLayout("lo_OrderFormSell")
I just discovered prior to posting this that if you switch their order, it works!
B4X:
pane_SellForm.LoadLayout("lo_OrderFormSell") 'do this one first...
pane_BuyForm.LoadLayout("lo_OrderFormBuy")
What's going on?! I smell a bug! ?
Attachments
Last edited: