Full Screen Opt Compilation?

cdeane

Member
How do I get full screen in Optimized Compilation?
This is the Code I use now:

Sub App_Start
Form1.Show
flib.new1("form1",B4PObject(0))
flib.fullscreen(CPPC)
End Sub
 

klaus

Expert
Licensed User
Use following

B4X:
flib.New1("Form1",B4PObject(1))
If CPPC Then
  flib.FullScreen2(true,true)
End If
The first true removes the menu.
The second true removes the title.

Best regards
 

klaus

Expert
Licensed User
You must also be aware of two points:

- you need one formlib object for each form where you want to use the formlib functions.
- if you hide the title it's up to you to provide a button to close the form.

Best regards
 

mamuen

Member
Licensed User
menu

Hi,

i want to hide the title but not the menu. I tried the following:

FormLib1.FullScreen2(true,true)
->menu removed
->title removed

FormLib1.FullScreen2(true,false)
->menu removed
->title not removed

FormLib1.FullScreen2(false,true)
->menu not removed
->title not removed ?????????

If this can explain to me somebody?
 

Erel

Administrator
Staff member
Licensed User
Full screen without a menu bar is only supported on .Net CF 2.0.
Once you compiled your application with the optimized compiler the title will disappear.
I've attached an example.
B4X:
Sub Globals

End Sub

Sub App_Start
 Form1.show
 f.New1("form1",B4PObject(1))
 f.FullScreen2(false,true)
End Sub

Sub Button1_Click
    AppClose
End Sub
 

Attachments

Top