How to make the title bar invisible and menu bar visible in full screen on the device

mozaharul

Active Member
Licensed User
Hi,

In the device, in full screen mode I want the title bar would not be visible but the menu bar should be visible.

the following code make both the title bar and the menu bar invisible.

Sub Form1_Show
flb.New1("Form1",B4PObject(1))
flb.FullScreen2(CPPC,true)
End Sub

the following code make the menu bar invisible but the title bar visible.

Sub Form1_Show
flb.New1("Form1",B4PObject(1))
flb.FullScreen2(CPPC,false)
End Sub

I use optimized compilation. Then how to make menu bar visible and title bar invisible.



regards,
 

klaus

Expert
Licensed User
Longtime User
From the help:

FullScreen2 method removes the menu bar and/or the title bar.
Syntax: FullScreen2 (RemoveMenu As Boolean, RemoveTitle As Boolean)

The first binary variable, if true, removes the menu bar.
The second binary variable, if true, removes the title line.

You should use:

B4X:
Sub Form1_Show
  flb.New1("Form1",B4PObject(1))
  If CPPC Then
    flb.FullScreen2(false,true)
  End If
End Sub

Best regards
 
Top