'This event will be called once, before the page becomes visible.
Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
'load the layout to Root
'load the layout to Root
Root.LoadLayout("lay_main")
Page2.Initialize
'B4XPages.AddPage("Page2", Page2)
B4XPages.AddPageAndCreate("Page2", Page2)
'Page2 = B4XPages.GetPage("Page2")
End Sub
Sub B4XPage_Appear
Log("sono qui")
WobbleMenu1.SetCurrentTab(1)
End Sub
'You can see the list of page related events in the B4XPagesManager object. The event name is B4XPage.
Sub WobbleMenu1_Tab2Click
'B4XPages.ShowPageAndRemovePreviousPages("Page2")
B4XPages.ShowPage("Page2")
End Sub