Private Sub B4XPage_Resize (Width As Int, Height As Int)
modH.SetDisplaySize(Width, Height)
End Sub
Sub SetDisplaySize(Width As Int, Height As Int)
Dim iWidth As Int = Max(Main.cG.i_Width, Width)
Dim iHeight As Int = Max(Main.cG.i_Height, Height)
iWidth = Max(iWidth, 100%x)
iHeight = Max(iHeight, 100%y)
Main.cG.i_Width = iWidth
Main.cG.i_Height = iHeight
End Sub
Dim dlg As B4XDialog : dlg.Initialize(Root) : Dialog = dlg 'global
Dim p As B4XView = xui.CreatePanel("")
p.SetLayoutAnimated(0, 0, 0, Main.cG.i_Width * 0.95, Main.cG.i_Width * 0.95)
p.LoadLayout("viewDlgPackages")
wait for (dlg.ShowCustom(p, "", "Content...", "Cancel")) Complete (dlgresult As Int)