Public Sub Initialize
B4XPages.GetManager.LogEvents = True
End Sub
Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
Root.LoadLayout("MainPage")
Dim ps As Screen = fx.PrimaryScreen
Log(ps.MaxX & " " & ps.MaxY)
B4XPages.GetNativeParent(B4XPages.MainPage).SetWindowSizeLimits(600,600, ps.MaxX,ps.MaxY)
End Sub
Private Sub B4XPage_Resize (Width As Int, Height As Int)
Log(Width & " " & Height)
End Sub