Newbie: Form Size 264h

enonod

Well-Known Member
Licensed User
Longtime User
I understand why 264 height is shown for the form, but because it is possible to turn off the status bar etc. and thus utilise the space, how do I recover that space?
It seems that setting the screen size automatically deducts the area in question.
I have searched but could not find a solution.
Thank you
 

specci48

Well-Known Member
Licensed User
Longtime User
Hello enonod,

you can use the FullScreen method provided by the FormLib:

B4X:
Sub App_Start
      Form1.show
      flb.New1("Form1",B4PObject(1))
      flb.FullScreen(True)
End Sub


specci48
 

enonod

Well-Known Member
Licensed User
Longtime User
Thank you specci48, I have much to learn
 

enonod

Well-Known Member
Licensed User
Longtime User
Sorry, (if you can catch this post) I tried the following in app start sub but the image jumps to the top left of desktop screen, without this it used to be at screen centre.
Can you help please?
Form1.Show
flb.New1("Form1",B4PObject(1))
flb.FullScreen(True)
gw.New1("Form1",0,0,Form1.Width,form1.Height)
 

enonod

Well-Known Member
Licensed User
Longtime User
Thank you Erel. I am struggling a bit to convert my mind from Delphi to this syntax.
In this instance I am having trouble understanding how I would discover cPPC and know to use that instead of True.
Would reading up on Visual Basic assist me in any way with this conversion I am going through?
 

enonod

Well-Known Member
Licensed User
Longtime User
Thank you.
 
Top