Cableguy Expert Licensed User Longtime User Jul 25, 2021 #1 Well, the Titke says pretty much everything.... It woul be nice to be able to define something like #Region Project Attributes #MainFormWidth: 100%x #MainFormHeight: 100%y #End Region instead of first setting some arbitrary size and then maximize to screen size Its just a wish
Well, the Titke says pretty much everything.... It woul be nice to be able to define something like #Region Project Attributes #MainFormWidth: 100%x #MainFormHeight: 100%y #End Region instead of first setting some arbitrary size and then maximize to screen size Its just a wish
Johan Schoeman Expert Licensed User Longtime User Jul 25, 2021 #2 I use this: B4X: Sub AppStart (Form1 As Form, Args() As String) MainForm = Form1 MainForm.WindowWidth = fx.PrimaryScreen.MaxX - fx.PrimaryScreen.MinX 'set the screen to full width/height MainForm.WindowLeft = fx.PrimaryScreen.MinX MainForm.WindowHeight = fx.PrimaryScreen.MaxY - fx.PrimaryScreen.MinY MainForm.WindowTop = fx.PrimaryScreen.MinY
I use this: B4X: Sub AppStart (Form1 As Form, Args() As String) MainForm = Form1 MainForm.WindowWidth = fx.PrimaryScreen.MaxX - fx.PrimaryScreen.MinX 'set the screen to full width/height MainForm.WindowLeft = fx.PrimaryScreen.MinX MainForm.WindowHeight = fx.PrimaryScreen.MaxY - fx.PrimaryScreen.MinY MainForm.WindowTop = fx.PrimaryScreen.MinY
Cableguy Expert Licensed User Longtime User Jul 25, 2021 #3 I'm using FormUtils Module and it works quite well, but it would be so much simpler,