Public Sub DesignerCreateView (Base As Panel, Lbl As Label, Props As Map)
mBase = Base
'The solution is to use CallSubDelayed.
CallSubDelayed2(Me, "AfterLoadLayout", Props)
End Sub
Sub AfterLoadLayout(Props As Map)
mBase.LoadLayout("mylayout")
End Sub
Public Sub DesignerCreateView (Base As Panel, Lbl As Label, Props As Map)
mBase = Base
' The solution is to use CallSubDelayed.
CallSubDelayed2(Me, "AfterLoadLayout", Props)
End Sub
Sub AfterLoadLayout(Props As Map)
mBase.LoadLayout("mylayout")
End Sub
Explanation of why my previous posts (just to not seem too stupid ).
After reading your question, I immediately thought to CallSubDelayed, because I assumed that it is necessary that the DesignerCreateView is complete before loading the layout; but, since I want always be sure, I wanted to try anyway directly.