B4J Question How to disabled the Close button?

Theera

Well-Known Member
Licensed User
Longtime User
Hi all,
Refer to this, If I need to disabled the Close button,how to coding?
 

Theera

Well-Known Member
Licensed User
Longtime User
It's only disabled the Close X ,but don't make it hided. Do we know that member of MainForm (CloseRequest) from ? I don't see from the Generate members menu.
 
Upvote 0

BPak

Active Member
Licensed User
Longtime User
Try this
B4X:
Sub AppStart (Form1 As Form, Args() As String)
	MainForm = Form1
	MainForm.RootPane.LoadLayout("Layout1") 'Load the layout file.
	MainForm.SetFormStyle("UNDECORATED")
	MainForm.BackColor = fx.Colors.Blue
	MainForm.Show
End Sub
 
Upvote 0
Top