Wish Use of %Y and %X on #MainFormWidth and #MainFormHeight

Cableguy

Expert
Licensed User
Longtime User
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
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
I'm using FormUtils Module and it works quite well, but it would be so much simpler,
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…