Hello,
Does anyone know what's wrong with this :
I have a layout called "Controles"
In this layout, I have a panel called "PNL_Controles"
this code :
Returns error : "The specified child already has a parent.You must call
RemoveView() on the child's parent first" on line Activity.AddView.
If I try changing the name of the panel :
It does nothing... In debugging mode, I can see that PNL_CONT returns
"Layout not available)"
What did I misunderstood ??????
Thks a lot,
WW
Does anyone know what's wrong with this :
I have a layout called "Controles"
In this layout, I have a panel called "PNL_Controles"
this code :
B4X:
Dim PNL_CONTROLES As Panel
PNL_CONTROLES.Initialize("")
PNL_CONTROLES.LoadLayout("Controles")
Activity.AddView(PNL_CONTROLES,0,0,100%x,100%y)
RemoveView() on the child's parent first" on line Activity.AddView.
If I try changing the name of the panel :
B4X:
Dim PNL_CONT As Panel
PNL_CONT.Initialize("")
PNL_CONT.LoadLayout("Controles")
Activity.AddView(PNL_CONT,0,0,100%x,100%y)
"Layout not available)"
What did I misunderstood ??????
Thks a lot,
WW