'main
Sub Process_Globals
Public App As Application
Public NavControl As NavigationController
Private Page1 As Page
Public tbc As TabBarController
End Sub
Private Sub Application_Start (Nav As NavigationController)
NavControl = Nav
Page1.Initialize("Page1")
Page1.Title = "Page 1"
Page1.RootPanel.Color = Colors.White
tbc.Initialize("tbc")
Page2Module.CreatePage
tbc.Pages = Array(Page1, Page2Module.Page2)
App.KeyController = tbc
End Sub