B4J Question Layout size

Declan

Well-Known Member
Licensed User
Longtime User
If a Form size is set as follows:
B4X:
    MainForm = Form1
    MainForm.WindowWidth = fx.PrimaryScreen.MaxX - fx.PrimaryScreen.MinX
    MainForm.WindowLeft = fx.PrimaryScreen.MinX
    MainForm.WindowHeight = fx.PrimaryScreen.MaxY - fx.PrimaryScreen.MinY
    MainForm.WindowTop = fx.PrimaryScreen.MinY
    MainForm.Show
How do I size the Layout to fill the Form
 
Top