Sub Process_Globals
'These global variables will be declared once when the application starts.
'Public variables can be accessed from all modules.
Public page As Page
Private xui As XUI 'ignore
Private hp As HomePageClass
Private backpanel As Panel
End Sub
Sub PageLoad
page.Initialize("page")
page.RootPanel.LoadLayout("Backpanel")
page.RootPanel.Color = Globals.gcol_primaryback
End Sub
Private Sub Page_Resize(Width As Int, Height As Int)
'Display within Iphone X safe areas
Private r As Rect = page.SafeAreaInsets
backpanel.SetLayoutAnimated(0,1,r.Left, r.Top, Width - r.Right - r.Left, Height - r.Bottom - r.Top)
hp.resize(Width - r.Right - r.Left,Height - r.Bottom - r.Top)
End Sub
Sub pagestart
If Not(page.IsInitialized) Then PageLoad
hp.Initialize("homepage")
hp.ShowPage(Me,backpanel)
End Sub
Sub page_Appear
hp.Resuming
End Sub
Sub page_Disappear
hp.Pausing
End Sub