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

Cableguy

Expert
Licensed 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
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
 
Top