B4J Question Fullscreen obligatory program

BarryW

Active Member
Licensed User
Longtime User
how to create a B4J app that run on a fullscreen that cannot be close and cannot be end tru task manager and cannot be minimize. The only way to end that is to click a button from the program itself.
 

micro

Well-Known Member
Licensed User
Longtime User
Upvote 0

jahswant

Well-Known Member
Licensed User
Longtime User
The above doesn’t work correctly on macOS use this instead.
B4X:
Sub AppStart (Form1 As Form, Args() As String)
   MainForm = Form1
   MainForm.WindowWidth = fx.PrimaryScreen.MaxX - fx.PrimaryScreen.MinX
   MainForm.WindowLeft = fx.PrimaryScreen.MinX
   MainForm.WindowHeight = fx.PrimaryScreen.MaxY - fx.PrimaryScreen.MinY
   MainForm.WindowTop = fx.PrimaryScreen.MinY
   MainForm.Show
End Sub
B4X:
  MainForm.SetFormStyle("UNDECORATED")
 
Upvote 0
Top