I have another question on this topic: I create the tabs with an empty layout. Then I load the correct (complex) layout in the first tab.
If another tab is called, I would like to use a copy of the layout of the first tab for the current one (because loading of this layout takes quite a long time).
For this purpose, I load the layout once into another panel and created an array of panels with the same dimension as the number of tabs, for example
DIM PanelArray(23) AS Panel
When calling a tab I wanted to load the panel with the layout using
PanelArray(X).AddView(PanelWithComplexLayout, 0, 0, 100%x, 100%y)
Unfortunately I get the message "The specified child already has a parent. You must call removeView() on the child's parent first" . Unfortunately this does not work.
How do I do it correctly?