I don't understand why I sometimes have to reference Root in the B4XMainPage.
B4XMainPage:
Parts of B4XSilly Page:
B4XMainPage:
B4X:
Public B4XSillyMod As B4XSilly
...
Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
Root.LoadLayout("BootPage")
...
B4XSillyMod.Initialize
B4XPages.AddPageandCreate("SillyShit", B4XSillyMod)
...
Case "whatishere"
B4XPages.ShowPage("SillyShit")
B4XSillyMod.WhatIsHere
Parts of B4XSilly Page:
B4X:
WhatsThis.Initialize("")
WhatsThis.SetLayoutAnimated(0, 0,0, 100%x, 100%y)
WhatsThis.LoadLayout("WhatIsThis")
Root.AddView(WhatsThis,0,0,100%x,100%y) ' only virgin CenterPanel
'B4M.Root.AddView(WhatsThis,0,0,100%x,100%y) ' works but cannot be right
' WhatsThis.BringToFront ' nope
' Root.BringToFront ' nope