Sub Process_Globals
Public App As Application
Private Page1, page2, page3 As Page
Private tbc As TabBarController
Dim nav1 As NavigationController
End Sub
Private Sub Application_Start (nav As NavigationController)
tbc.Initialize("tbc")
App.KeyController = tbc
Page1.Initialize("Page1")
Page1.Title = "Page 1"
Page1.RootPanel.Color = Colors.White
nav1.Initialize("nav1")
tbc.Pages = Array(Page1, nav1)
page2.Initialize("page2")
page2.RootPanel.Color = Colors.Green
page2.Title = "Page 2"
page3.Initialize("page3")
page3.RootPanel.Color = Colors.Red
page3.Title = "Page 3"
nav1.ShowPage(page2)
End Sub
Sub Page2_Click
nav1.ShowPage(page3)
End Sub